Jerome Quelin wrote:
Hi there,
How can one retrieve the keys of a PerlHash in Parrot assembly? Is there a way to traverse a hash?
Not yet.
There is a nextkey_keyed mentioned in pdd02_vtables.pod, which would almost be all to implement aggregate iterators. Missing is IMHO how to reset (start) an iteration.
Also not too long ago, there was some proposal WRT an iterator class.
This proposal needed more vtable functions.
Also not specified: how to attach an iterator to an aggregate.
Jerome
leo, who cc'ed Dan for clarification ;-)