> From: John Macdonald [mailto:[EMAIL PROTECTED] 
> Sent: Monday, March 07, 2005 12:50 PM

> Precedence has nothing to do with it.  The issue is how the
> tokenizer breaks the input sequence '+++' into operator tokens.

Absolutely. The trickier version of the same question is when both sides
of the '+++' are variables:

$y=$x+++$z

That's when you need to know that parsing is done left to right, so the
above will be evaluated as '($x++)+$z' & NOT '$x+(++$z)' (since  both
are valid syntactically). Again, to stress it, this is not a recommended
coding method & I would not go near it. It's merely an exercise in
semantics & should be read in that context!


-Nilanjan

_______________________________________________
Boston-pm mailing list
[email protected]
http://mail.pm.org/mailman/listinfo/boston-pm

Reply via email to