Re: Trying to write a oo :method that isn't automatically inserted in a namespace.

2007-12-21 Thread Kevin Tew
Yeah, I spent an hour trying to figure out how 'set_pmc_keyed_str' vtable function in src/pmc/namespace.pmc precluded :methods from the namespace before I tested it and found out that it didn't. What do we want the final behavior to be? I'm going to take a guess, correct me as needed. :method

Re: Trying to write a oo :method that isn't automatically inserted in a namespace.

2007-12-21 Thread Allison Randal
Kevin Tew wrote: :method subs should not be added to the namespace unless they have a :namespace flag. Yes. So we should fix set_pmc_keyed_str to not add :methods unless the :namespace flag is present. Sort of. The thing is, 'set_pmc_keyed_str' isn't just storing subs in the namespace, i

Re: Trying to write a oo :method that isn't automatically inserted in a namespace.

2007-12-21 Thread Allison Randal
On Fri, Dec 21, 2007 at 01:30:42AM -0700, Kevin Tew wrote: I've added parsing of :namespace to imcc, now I'm trying to figure out what I'm suppose to do differently when :namespace is present in a methods prototype. I thought I was suppose to add the :method to a namespace, but that seems to al

Re: Trying to write a oo :method that isn't automatically inserted in a namespace.

2007-12-21 Thread Patrick R. Michaud
On Fri, Dec 21, 2007 at 01:30:42AM -0700, Kevin Tew wrote: > I'm working on http://rt.perl.org/rt3/Ticket/Display.html?id=48631 > I've added parsing of :namespace to imcc, now I'm trying to figure out > what I'm suppose to do differently when :namespace is present in a > methods prototype. > I th

Trying to write a oo :method that isn't automatically inserted in a namespace.

2007-12-21 Thread Kevin Tew
I'm working on http://rt.perl.org/rt3/Ticket/Display.html?id=48631 I've added parsing of :namespace to imcc, now I'm trying to figure out what I'm suppose to do differently when :namespace is present in a methods prototype. I thought I was suppose to add the :method to a namespace, but that see