Safe Navigation in OCL
暂无分享,去创建一个
The null object has been useful and troublesome ever since it was introduced. The problems have been mitigated by references in C++, annotations in Java or safe navigation in Groovy, Python and Xbase. Introduction of a safe navigation operator to OCL has some rather unpleasant consequences. We examine these consequences and identify further OCL refinements that are needed to make safe navigation useable.
[1] Martin Gogolla,et al. Report on the Aachen OCL Meeting , 2013, OCL@MoDELS.
[2] Sebastian Bassi,et al. Python Language Reference , 2009 .
[3] Bjarne Stroustrup,et al. The Annotated C++ Reference Manual , 1990 .