At 11:00 AM -0700 8/8/02, Steve Fink wrote: >Oh, yeah. The perl6 summary reminded me: I forgot to mention that this >would also make $a[-6] (or @a[-6] if you're writing perl6) on a >4-element array throw an exception instead of autoextending the array, >wrapping around to a valid element, or exploding in flames. That goes >for both Array and PerlArray. I don't remember what the currently >checked-in version does.
Array and PerlArray shouldn't autoextend that way, I think. I'm not 100% sure that Array should auto-extend at all--I think I'd rather it didn't. We need to check with Larry as to whether PerlArrays should autoextend when using excess negative indices. >The other array-related thing in the perl6 summary was about a fetch >of $a[10000] triggering autoextension to 10001 elements -- that >doesn't happen anymore with this patch. That's a good thing, though. -- Dan --------------------------------------"it's like this"------------------- Dan Sugalski even samurai [EMAIL PROTECTED] have teddy bears and even teddy bears get drunk