[parrot-tickets] [Parrot] #780: [RFC] deprecated parrot_new_pointer_hash and parrot_new_cstring_hash

Vasily Chekalkin bacek at bacek.com
Mon Jun 22 10:22:56 UTC 2009


chromatic wrote:
> On Sunday 21 June 2009 04:31:42 Parrot wrote:
> 
>>  Currently parrot's hash (not PMC Hash) officially supports C-strings and
>>  C-pointers as keys. I can't find any usage of it and propose to deprecate
>>  them. (And make C-string and C-pointer keys in hash it virtually
>>  impossible to make bullet-proof anyway)
> 
> Are you sure?  I'm certain I've used them a few times.

Yeah... Found couple of them.

a) 1 usage of cstring Hash in string/api.c for constants. Can be easily 
converted to  normal STRING*. (Thinking little bit) Hey. What about 
unicode constants? Especially UCS2?

b) 1 usage of cpointer Hash. Used for Packfile_Constants. AFAIU we are 
going to use Packfile PMCs for everything in some bright and shiny 
future. So I can't see any problems here.

-- 
Bacek


More information about the parrot-dev mailing list