Chaim Frenkel wrote:
> >>>>> "GL" == Glenn Linderman <[EMAIL PROTECTED]> writes:
>
> GL> Chaim Frenkel wrote:
> >> ($foo, $baz, @bar) = (1,(2,3),4) # $foo = 1 $baz=2, @bar=(3,4)
> >>
> >> Actually, looking at it like that makes it an ugly situation. The 'new'
> >> expectation would be to have it become
> >> # $foo=1 $baz=2 @bar=(4)
>
> GL> Actually? How about it becoming
> GL> $foo = 1, $baz =3, @bar = (4)
> GL> Remember what the following does:
> GL> $baz = ( 2, 3 );
>
> I certainly do. But what is the context on the RHS. list, so
> the other interpretation could hold just a well
>
> $baz = () = (2,3) # $baz = 2
The _overall_ context on the RHS is, indeed, list. So the definition of
list
context assignment, as far as I understand, is a repetitive scalar
assignment of
corresponding items. Hence, when the second of the above assignments is
made,
we've already reduced the focus from list context to scalar context. At
least,
that is how my reasoning would go, but I allow that other
interpretations could
exist, but so far am convinced other interpretations would be more
confusing.
> <chaim>
> --
> Chaim Frenkel Nonlinear Knowledge, Inc.
> [EMAIL PROTECTED] +1-718-236-0183
--
Glenn
=====
There are two kinds of people, those
who finish what they start, and so
on... -- Robert Byrne
_____NetZero Free Internet Access and Email______
http://www.netzero.net/download/index.html