Uri Guttman wrote:
> is there any guarantee of evaluation order in arg lists? will the
> bless/splice always be executed before the pop?

I believe it is undefined, so it's not recommended that you do anything order
dependent in the argument list.  But it is stable.

As implemented, "complex" expressions are evaluated first, then simple ones.
This leads to classic oddities like this:

perl -wle 'sub foo { print join " ", @_ }  $i = 1;  foo($i, $i++, $i++)'
3 1 2

This is not specific to Perl, but I believe a C thing as well.


> my longer but amusing answer is this:
> 
> sub new {
>       [EMAIL PROTECTED]
> }
> 
> it is not warning safe and it leaves '' => CLASS in the hash. but it has
> no temp vars, calls to splice or shift.

You fell into the trap!  That's an improper constructor, can you tell us why?


-- 
Robrt:   People can't win
Schwern: No, but they can riot after the game.

Reply via email to