Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » OCL » allInstances
allInstances [message #9562] Sun, 04 March 2007 13:21 Go to next message
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 Go to previous message
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?
Previous Topic:The generated code of OCLEcore.genmodel
Next Topic:Re: [OCL] Any plans on parser extensibility, error recovery ?
Goto Forum:
  


Current Time: Tue Oct 21 08:50:19 GMT 2014

Powered by FUDForum. Page generated in 0.04804 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software