On Saturday 08 December 2007 08:29:05 Jonathan Worthington wrote:

> chromatic wrote:

> > On Thursday 06 December 2007 15:49:45 Jonathan Worthington wrote:
> >> What it implemented (when I get chance, which should be this weekend) as
> >> an arity method on the Sub PMC?
> > That would be much nicer
> Implemented in r23598 for the Sub PMC.

Two small things.  First, the argument passing code should call this instead 
of VTABLE_invoke to find the arity.  Second, it should be memoizable.

I have some concerns about efficiency here (invoke is already very expensive), 
but let's get this right first and then worry about efficiency (but let me 
worry about efficiency now).

> Ah, yes, NCI. I'll have a look at implementing it there too.

These two changes ought to fix that long-standing bug about invoking a Sub/NCI 
from C, where you can pass parameters to the Sub but not to the NCI.

-- c

Reply via email to