Ticket #182 (closed bug: fixed)
src/pmc/Namespace.pmc:get_pointer_keyed should accept NameSpace arguments
|Reported by:||whiteknight||Owned by:||whiteknight|
|Severity:||medium||Keywords:||pmc namespace oo|
get_pointer_keyed in the NameSpace PMC currently accepts the following types of PMC arguments: String, Key, and ResizableStringArray. This vtable interface is called from pmc_type_p, which is now (or will be soon) used in Parrot_oo_get_class, which in turn is called from the get_class opcode.
Since get_class can take an RSA, a String, a Key, or a Namespace, this function needs to be updated to take a Namespace as well. Currently, Parrot_oo_get_class does a hack where namespaces are treated separately (stringified, then the string name is looked up in the class hash, and the type id number sent to pmc_type), while RSA, Strings, and Keys get handled (properly) by pmc_type_p.
This issue is blocking a resolution to TT#8.