Quoting Bert Wesarg <[EMAIL PROTECTED]>:

> Hi,
>
> On Fri, Feb 29, 2008 at 1:20 AM, Tony Balinski <[EMAIL PROTECTED]> wrote:
> >  Assign multiple lvalues in one statement
> really nice.
>
> >  list assign, thus:
> >
> >             (x, y, z) = args(a, b, c)
> Am I right, that with all your other patches, this
>
>             define sum_func {
>                 return { "foo", 10 }
>             }
>
> doesn't work, because of the 0-starting array?

Indeed you are. $args[1] is the same as $1, and when you copy $args to another
array, it's still index 1. A bit bizarre but I wanted things to work in a way
analogous to parameter lists, hence the args() built-in.

Tony
-- 
NEdit Develop mailing list - [email protected]
http://www.nedit.org/mailman/listinfo/develop

Reply via email to