A lot of this seems very special cased for a given use.

If you want to append to an array using numeric indexes, that feature already 
exists:

    xyz = $empty_array
    xyz[xyz[]] = "a"
    xyz[xyz[]] = "list"
    xyz[xyz[]] = "of"
    xyz[xyz[]] = "words"
    xyz[xyz[]] = "in"
    xyz[xyz[]] = "a"
    xyz[xyz[]] = "zero"
    xyz[xyz[]] = "based"
    xyz[xyz[]] = "array"

results in:

xyz[0] = a
xyz[1] = list
xyz[2] = of
xyz[3] = words
xyz[4] = in
xyz[5] = a
xyz[6] = zero
xyz[7] = based
xyz[8] = array


This is no more bulky than doing the same thing in some shell languages like 
bash.

Do we really need a new feature here?

   -Steve

----- Original Message ----
From: Bert Wesarg <[EMAIL PROTECTED]>
To: NEdit development list <[email protected]>
Sent: Thursday, April 10, 2008 2:01:40 PM
Subject: Re: extending array macro language: array[] = expr

On Thu, Apr 10, 2008 at 10:59 PM, Tony Balinski <[EMAIL PROTECTED]> wrote:
> Quoting Bert Wesarg <[EMAIL PROTECTED]>:
>
>
> > And what do you expect here:
>  >
>  >  arr[3] = 0
>  >  arr[4] = 1
>  >  arr["key0"] = 2
>  >  arr["key1"] = 3
>  >
>  > arr[] = 999 would than overwrite arr[4], or what?
>  No: syntax error ;) Your idea would assign to arr[5], wouldn't it?
Right, it would always assign to an non-assigned index.

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




__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
-- 
NEdit Develop mailing list - [email protected]
http://www.nedit.org/mailman/listinfo/develop

Reply via email to