compare said ELong variable with an ELong constant.
In my example, substrateNode.residualCpu is an ELong and I want to check if it is greater than 0:
Possible feature requests:
Implement a language feature to express (E)Longs in GT rules/patterns, e.g.: # substrateNode.residualCpu > 0l
Implement a feature for the backend, that compatible data types can be "casted" automatically. This would allow comparing, e.g., ELongs with EInts: # substrateNode.residualCpu > 0
IMO is 2. the preferred solution as this is how it is handled in Java.
Currently, it is not possible to either:
ELong
variable with anEInt
ELong
variable with anELong
constant.In my example,
substrateNode.residualCpu
is anELong
and I want to check if it is greater than 0:Possible feature requests:
(E)Long
s in GT rules/patterns, e.g.:# substrateNode.residualCpu > 0l
ELong
s withEInt
s:# substrateNode.residualCpu > 0
IMO is 2. the preferred solution as this is how it is handled in Java.