On Mon, Nov 25, 2002 at 05:24:14PM -0800, Michael G Schwern wrote: > There's no guarantee about the order of evaluation of arguments to a > function in Perl (not sure if this generalizes to any list). Not sure why. > I think C is the same way. Can't find where this is documented, I know its
In C there are synchronisation points, and the postfix must happen before the end of a synchronisation point, but the synch point for a function is (I believe) after the function arguments. I'm not sure about where the prefix++ must happen. The C compiler is, however, free to do what it likes within the confines of the synchronisation points. The nice thing about Perl is that there is one "compiler", and therefore you can know that the behaviour will be consistent (within a particular version, though god help you if you try to do nasty things like this across versions) MBM -- Matthew Byng-Maddick <[EMAIL PROTECTED]> http://colondot.net/
