On Tue, Sep 23, 2008 at 09:39:06PM +0200, Moritz Lenz wrote:
> Moritz Lenz wrote:
> > Is there a construct that lets me find a multi, and that will later do
> > dispatch based on the types of the parameters that I'll hand to it?
> 
> chromatic told me about "find_global", so that's what I tried, with
> partial success.

The 'find_global' opcode is deprecated, and doesn't really do anything
different with respect to locating 'infix:cmp' anyway.

What happens when 'infix:cmp' is given a :multi() flag is that
the object associated with infix:cmp changes from a Sub PMC to
a MultiSub PMC.  This is what should happen.  However, for some reason 
the change from to a MultiSub PMC is causing the 'sort' method dispatch 
to FixedPMCArray to fail with "No applicable methods".  I'm looking into 
FixedPMCArray now to see if I can find out why.

Pm
_______________________________________________
http://lists.parrot.org/mailman/listinfo/parrot-dev

Reply via email to