31 Jul
2003
31 Jul
'03
5:44 a.m.
Bruno MartÃnez wrote:
Hi boosters,
In operators.html (a || b) is said to be equivalent to (a | b | a >> b), but, if I understand precedence correctly, it should be equivalent to (a >> b | a | b). I'm just learning Spirit, so this may probably be my mistake, right?
Actually it's equivalent to (a >> !b | b). The difference being that any semantic action on 'a' will only be executed once. -- Rainer Deyke - rainerd@eldwood.com - http://eldwood.com