Re: List.end - last item and last index mixing

2008-12-15 Thread Larry Wall
On Sun, Dec 14, 2008 at 09:33:20PM +0100, Moritz Lenz wrote: : Moritz Lenz wrote: : > From S29: : > : > : =item end : > : : > : our Any method end (@array: ) is export : > : : > : Returns the final subscript of the first dimension; for a one-dimensional : > : array this simply the index of the fi

Re: List.end - last item and last index mixing

2008-12-14 Thread Moritz Lenz
Moritz Lenz wrote: > From S29: > > : =item end > : > : our Any method end (@array: ) is export > : > : Returns the final subscript of the first dimension; for a one-dimensional > : array this simply the index of the final element. For fixed dimensions > : this is the declared maximum subscript.

Re: List.end - last item and last index mixing

2008-12-12 Thread Mark J. Reed
I'd say look at prior art, but "end" in this role isn't very common. It shows up in AppleScript, where it does double duty: "end" serves as an index in ranges ("items 3 through end of someList"), but by itself it returns the last item, not the last index ("end of someList"), and as a lone index it

Re: List.end - last item and last index mixing

2008-12-12 Thread Jon Lang
Moritz Lenz wrote: > From S29: > > : =item end > : > : our Any method end (@array: ) is export > : > : Returns the final subscript of the first dimension; for a one-dimensional > : array this simply the index of the final element. For fixed dimensions > : this is the declared maximum subscript.

List.end - last item and last index mixing

2008-12-12 Thread Moritz Lenz
>From S29: : =item end : : our Any method end (@array: ) is export : : Returns the final subscript of the first dimension; for a one-dimensional : array this simply the index of the final element. For fixed dimensions : this is the declared maximum subscript. For non-fixed dimensions (undeclare