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.

leo

[1] and it doesn't make it through imcc, it's an error anyway



Reply via email to