[rules-users] Globals in LHS of a rule?

Mark Proctor mproctor at codehaus.org
Tue Nov 27 12:22:11 EST 2007


Michael Zimmermann wrote:
> Darko IVANCAN wrote:
>
>   
>> I'm not sure,but  myList(size()==2) could work though.
>>
>> Does it ?
>>     
>
> No, doesn't work.
>
> My interpreation so far:
> a) globals are only possible in eval() statements
> b) access to methods of global variables are not supported.
>
> and possibly c) only properties of globals can be accessed (not tested
> as a list has no useful property imho)
>
> Well, I can life with the eval() statements but think they are slightly
> inconvenient and make the code less explicit and less readable.
>   
Just assert the object if you wish to reason over it as a Pattern, 
trying to use a global as a Pattern doesn't really make much sense.
> cu, Michael
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>   

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20071127/61185cd8/attachment.html 


More information about the rules-users mailing list