Ticket #182 (closed bug: fixed)

Opened 13 years ago

Last modified 13 years ago

src/pmc/Namespace.pmc:get_pointer_keyed should accept NameSpace arguments

Reported by: whiteknight Owned by: whiteknight
Priority: normal Milestone: 0.9.1
Component: core Version:
Severity: medium Keywords: pmc namespace oo
Cc: Language:
Patch status: Platform: all


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.

Change History

Changed 13 years ago by whiteknight

  • status changed from new to closed
  • resolution set to fixed

With help from Jonathan++, I found an alternate solution to this problem.

Note: See TracTickets for help on using tickets.