|[Xtend] test on infinity value [message #537379]
||Wed, 02 June 2010 05:06
Registered: February 2010
when building a metamodel, -1 symbolize the maximum value in a EAttribute.
But whenever I want to make a test on a EAttribute, if I want to check if it's value is higher than 12 (for example), I need to make two tests, in case the value is infinite (-1).
attribute > 1 || attribute == -1
It is more for beauty than a necessity, but is there an extension that does both tests, or would I have to write it.
One day I shall master M2T, but that day has yet to come...
Powered by FUDForum
. Page generated in 0.01560 seconds