Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » OCL » Return OrderedSet{null} for many features
Return OrderedSet{null} for many features [message #1066903] Fri, 05 July 2013 06:20 Go to next message
Mario Bender is currently offline Mario BenderFriend
Messages: 1
Registered: July 2013
Junior Member
Hello ,

in our current design we decided to return an OrderedSet{} for unknown results, where the arity is *.


But ideally would be OrderedSet{null} for many features.


Is it possible to allow to return OrderedSet{null} and if so how?


Thanks in advance.
Re: Return OrderedSet{null} for many features [message #1067017 is a reply to message #1066903] Fri, 05 July 2013 13:02 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7680
Registered: July 2009
Senior Member
Hi

OrderedSet{null} should be valid.

You should be able to use either "OrderedSet{null}" or
"null->asOrderedSet()"

You haven't described enough about your design context to enable me to
comment properly, but some of your phrasing makes me deeply suspicious.
You seem to be busy reusing a value that has a valid meaning to signal
some alternate meaning. This may bite you as the implementation progresses.

Regards

Ed Willink


On 05/07/2013 13:40, Mario Bender wrote:
> Hello ,
>
> in our current design we decided to return an OrderedSet{} for unknown
> results, where the arity is *.
>
>
> But ideally would be OrderedSet{null} for many features.
>
>
> Is it possible to allow to return OrderedSet{null} and if so how?
>
>
> Thanks in advance.
>
Previous Topic:OCL Editor
Next Topic:Referencing other Enumerations from other .ecore Model
Goto Forum:
  


Current Time: Fri Dec 13 22:03:27 GMT 2024

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

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

Back to the top