At 10:48 AM +0200 8/21/04, Leopold Toetsch wrote:
Steve Fink wrote:
... For PerlHash, P0["foo";3] seems to be interpreted as an
iterator access? I hope there's some other way of indicating that.

Yep, KEY_integer_FLAG used to indicate, get me the next key and is used by the iterator. But as your test shows its ambiguous.


We are already allowing integers and plain PMCs as aggregate keys, so we can't use that flag for iterator too.

We still have KEY_number_FLAG. It's unused. I can't imagine that we gonna index aggregates by floating point numbers[1]. So if no one hollers I'll reuse this flag for denoting iterator access for hashes.

I'd rather not. I can see this happening for specialized arrays and slices, so lets leave it as is. If we need another flag, then we add another flag.
--
Dan


--------------------------------------it's like this-------------------
Dan Sugalski                          even samurai
[EMAIL PROTECTED]                         have teddy bears and even
                                      teddy bears get drunk

Reply via email to