Re: RFC 120 (v2) Implicit counter in for statements, possibly$#.

2000-08-30 Thread Jonathan Scott Duff
On Tue, Aug 29, 2000 at 05:51:44PM -0500, David L. Nicol wrote: I'd like to see a last-container-key attribute included as a possibilty; and that attribute called ":n" to match the argument of integer functions in introductory algebra. This approach gives us for $a @some_list {

Re: RFC 120 (v2) Implicit counter in for statements, possibly $#.

2000-08-30 Thread Johan Vromans
John McNamara [EMAIL PROTECTED] writes: As far as I can see the current consensus is as follows: 1. Implicit variable: nice but not really worth the trouble. 2. Explicit variable between foreach and the array: might conflict with other proposals. 3. Explicit counter

Re: RFC 120 (v2) Implicit counter in for statements, possibly$#.

2000-08-30 Thread Chaim Frenkel
This is making the index variable into an a wrapper object. Since the underlying value can't (or shouldn't) know which of the n containers it is in. chaim "JSD" == Jonathan Scott Duff [EMAIL PROTECTED] writes: JSD Interesting. I must have missed this. I'm not wild about the syntax, JSD but