allInstances [message #9562] |
Sun, 04 March 2007 13:21 |
Eclipse User |
|
|
|
Originally posted by: chaves.inf.ufsc.nospam.br
Since the allInstances operation applies to the classifier itself and
not to objects of the class, it should be static, shouldn't it?
|
|
|
Re: allInstances [message #9638 is a reply to message #9562] |
Tue, 06 March 2007 19:25 |
Eclipse User |
|
|
|
Originally posted by: cdamus.ca.ibm.com
Hi, Rafael,
I'm not sure; this looks like an inconsistency in the specification.
allInstances() is defined on the OclAny type, and the specification
doesn't indicate that it would be static. All of the examples, though,
illustrate what looks like static invocation but doesn't use the '::'. It
looks more like an operation defined by the TypeType metaclass.
Cheers,
Christian
Rafael Chaves wrote:
> Since the allInstances operation applies to the classifier itself and
> not to objects of the class, it should be static, shouldn't it?
|
|
|
Powered by
FUDForum. Page generated in 0.02810 seconds