Dan Sugalski <[EMAIL PROTECTED]> wrote: > Add a vtable slot to the PMC vtable inv_init (or something like that, > the name's not that big a deal),
vtable->new and "__new"? > ... define it as an invokable method > taking parameters as the current calling conventions, and be done > with it. Basically we special-case this one method and hoist it up > into a vtable slot. IMCC for it'd look something like: > (result1, result2) = $Pxxx.inv_init(1, 2, "foo", "bar", $Pbaz) Two return values? What is $Pxxx: a class PMC or an empty Undef object of some kind? I think we should have: Pclass = getclass, "Foo" Pobjnew = Pclass."__new"(args) # Pnew is an OUT argument and that be special-cased to call VTABLE_new according to calling conventions. How does that correspond to the proposed CONSTRUCT property? Is that still needed? leo