On Thu, Apr 10, 2008 at 6:23 AM, Tony Balinski <[EMAIL PROTECTED]> wrote: > > Quoting Bert Wesarg <[EMAIL PROTECTED]>: > > > Hi, > > > > this is a small change to the macro language, to accept syntax like this: > > > > arr[] = "zero" > > arr[] = "one" > > : > > > > Currently this is just an error. Now the key will be chosen as the > > currently max numeric key in arr + 1. So holes in the numeric key > > range are not filled. > > > > Bert > > > > A bit misleading this: if you have the array > arr[0] = 0 > arr[1] = 1 > arr["key0"] = 2 > arr["key1"] = 3 > adding arr[] = 999 will provide arr[2], not arr[4] as I would expect from the > right-hand-side behaviour of arr[] (it's not the same as arr[arr[]] = 999). 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? Bert -- NEdit Develop mailing list - [email protected] http://www.nedit.org/mailman/listinfo/develop
