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

[email protected] (Chaim Frenkel) 30 Aug 2000 19:40:17 -0400
Newsgroups perl.perl6.language.flow
Message-ID <[email protected]>
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 I like the idea.  If everything become objects under-the-hood,
JSD> then we could have:

JSD> 	for $a (@array) { print "$a is at $a->index\n"; }

JSD> No, I'm not wild about that either, but it's an idea.


-- 
Chaim Frenkel					     Nonlinear Knowledge, Inc.
[email protected]				               +1-718-236-0183