Nathan Wiger wrote:
> 
> Well, it just stacks arguments on the end, even with open-ended
> prototypes:
> 
>    @a =~ my_user_sub($arg); # @a = my_user_sub($arg, @a)

What it means is, you can't prototype the thingy that could be
expected on the LHS of the =~, when function is open-ended,
because in foo($@\@), that final \@ never gets applied to any actual
argument.


More importantly, adding the LHS to the beginning of @_, as I proposed,
would be highly consistent (fwtw), since perl would rearrange

        $x =~ foo( $a )

into

        foo( $x, $a )

just the way it already rearranges

        $x -> foo( $a )

into

        foo( $x, $a )

(for certain types of $x, of course...)
Perl doesn't put the object at the end of the method's @_,
so I don't think it should in this case, either.

However, I feel that we're now arguing which end of the egg to break.
I'm sure Larry can figure out the best way to approach this issue.

-- 
John Porter

        We're building the house of the future together.

Reply via email to