XCSG:Parameter

From AtlasWiki
Revision as of 13:51, 5 March 2014 by Xingyan (Talk | contribs) (Created page with "The semantics of Parameter include those common to UML [5, p. 2-51, 2-69], MS-IL, and the JVM. The defaultValue of a Parameter must be compatible with its type. When default...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

The semantics of Parameter include those common to UML [5, p. 2-51, 2-69], MS-IL, and the JVM.

The defaultValue of a Parameter must be compatible with its type.

When default parameter values are overridden, the default parameter value associated with a call should always be determined by the run time type of the target object.


Specifications

Language Mappings

The kind property is related to the use of keywords such as const (in C++), final (in Java), or in, out and inout (in Ada), which restrict read/write access to individual parameters. C++ does not handle overridden default parameter values correctly, as explained by Scott Meyers [47, Item 38].