Re: McNamara's C<$#> as a property of any array element

2000-08-25 Thread David L. Nicol
Imagine a combined hash/array CONTAINER type. The difference between hashes and arrays becomes that arrays are restricted to non-negative integer key values. @grumpy and %grumpy can even have the same head node in their data structure, but the accessors will, unless told otherwise, only pick o

Re: McNamara's C<$#> as a property of any array element

2000-08-25 Thread Peter Haworth
[Apologies for the late reply. Still catching up] On Thu, 17 Aug 2000 20:51:01 -0500, David L. Nicol said: > What if its a method of anything in an array? $_ is already > a reference to the object on the array in for loops rather > than a copy of it. What if we make change be not something a

Re: McNamara's C<$#> as a property of any array element

2000-08-18 Thread David L. Nicol
Jarkko Hietaniemi wrote: > > $item:n would be the position $item had in the last container it was in > > $item:i, you surely meant? $item:n would be the size of the list... The size of the list would be something like $#{$item:contained_in} the size of the list is not a property of the item, s

Re: McNamara's C<$#> as a property of any array element

2000-08-18 Thread Jarkko Hietaniemi
On Fri, Aug 18, 2000 at 03:46:10AM -0500, David L. Nicol wrote: > Mike Pastore wrote: > > > > Any thoughts on this? Yes, please, the idea, that is: I've wanted such a variable oftentimes. What I'm not certain about is reusing the $#. Reusing obsoleted stuff is Dangerous. > Attributes. > > ($

Re: McNamara's C<$#> as a property of any array element

2000-08-18 Thread David L. Nicol
Mike Pastore wrote: > > Any thoughts on this? Attributes. ($item : arrayposition) would tell us what the position is. -- David Nicol 816.235.1187 [EMAIL PROTECTED] Does despair.com sell a discordian calendar?

Re: McNamara's C<$#> as a property of any array element

2000-08-18 Thread Hildo Biersma
"David L. Nicol" wrote: > > What if its a method of anything in an array? $_ is already > a reference to the object on the array in for loops rather > than a copy of it. What if we make change be not something about > for loops, but about anything in an array? > > print "The index, in

Re: McNamara's C<$#> as a property of any array element

2000-08-17 Thread Mike Pastore
"David L. Nicol" wrote: > > What if its a method of anything in an array? $_ is already > a reference to the object on the array in for loops rather > than a copy of it. What if we make change be not something about > for loops, but about anything in an array? > > print "The index, in

McNamara's C<$#> as a property of any array element

2000-08-17 Thread David L. Nicol
What if its a method of anything in an array? $_ is already a reference to the object on the array in for loops rather than a copy of it. What if we make change be not something about for loops, but about anything in an array? print "The index, in its array, of <<$_>> is $CORE::ARRAY