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. For non-fixed dimensions > (undeclared > : or explicitly declared with C<*>), the actual last element is used. > > > The last sentence seems to suggest that not the index of the last > element is returned, but the element itself. (Which I think is pretty weird)
I've found a test that seems to imply that the index is meant, so I've patched S29 to say that. Thanks everybody for your input. Cheers, Moritz