How can one retrieve the keys of a PerlHash in Parrot assembly? Is there
a way to traverse a hash?
Jerome
--
jqu...@mongueurs.net
> 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 ;-)
> Also not too long ago, there was some proposal WRT an iterator class.
I was the proposer. I have written an Iterator PMC back in the ol'
0.0.8 days, but then I was distracted and never finished my work.
I will try to reimplement my addition to 0.0.9 and submit a patch
ASAP (probably after 07 jan ;-).
> This proposal needed more vtable functions.
yes, it does.
> Also not specified: how to attach an iterator to an aggregate.
this was solved with the implementation of the 'assign' op.
cheers,
Aldo
__END__
$_=q,just perl,,s, , another ,,s,$, hacker,,print;
> I was the proposer. I have written an Iterator PMC back in the ol'
> 0.0.8 days, but then I was distracted and never finished my work.
> I will try to reimplement my addition to 0.0.9 and submit a patch
> ASAP (probably after 07 jan ;-).
Thanks, great.
> cheers,
> Aldo
leo