I have to check if a generic XExpression is a boolean condition.
I'll try to check type of expression, but it is insufficient: in fact something like this have boolean type but isn't a boolean condition
Lorenzo Bettini Messages: 1734 Registered: July 2009 Location: Firenze, Italy
On 12/21/2012 04:06 PM, Tommaso De Sica wrote:
> Goodevening guys.
> I have to check if a generic XExpression is a boolean condition.
> I'll try to check type of expression, but it is insufficient: in fact
> something like this have boolean type but isn't a boolean condition
> if (true) true
> Very thank you!
if it has boolean type it is a boolean condition actually :)
Am 27.12.12 15:12, schrieb Tommaso De Sica:
> Christian Dietrich wrote on Thu, 27 December 2012 12:33
>> Xbase has not char literals but string literals only. Have a look at
>> the xbasetypeprovider for further details on the type system
> Yes, I know it.
> But my curiosity was about the reason of it.
This is a current limitation that we want to get rid of, e.g. by means
of target typing. Both expression will be valid in future versions of Xbase:
val char c = 'c'
val String s = 's'
Looking for professional support for Xtext, Xtend or Eclipse Modeling?
Go visit: http://xtext.itemis.com