Re: [perl #31859] [TODO] Plain ole Hash

2005-01-02 Thread Leopold Toetsch
Bernhard Schmalhofer via RT wrote:
I assume that the Hash PMC should also be used by PIR code in
'runtime/parrot/library'. In that case returning PMCNULL is not nice, as
the returned PMC can't even be queried for it's type.
So for now a None PMC is returned for non-existent keys.
However this is not consistent with e.q. FixedPMCArray, which does
return PMCNULL. ResizablePMCArray is even more inconsistent and seems to
return an Undef PMC. 
Yep, we've to unify aggregates behavior.
Thanks, applied.
leo


Re: [perl #31859] [TODO] Plain ole Hash

2004-12-18 Thread Leopold Toetsch
Bernhard Schmalhofer via RT wrote:
The attached patch makes the Hash PMC use basic PMCs by default. Native
integers, numbers and strings are now stored as Integer, Float and
String PMCs. For keys without values, the Undef PMC is returned, as it
is laid out in pdd17. 
As already mentioned: the Hash PMC is mainly used inside Parrot to 
manage internals. For a non-existent key NULL should be returned.

WRT type mappings: we need a more general scheme for mappings of basic 
types to Perl, python, whatever.

TODO: 

- Go skiing in the Austrian Alps!!
He, he. Have fun!
CU, Bernhard
Servus,
leo