[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-dev] Cocoa primitives



On Sunday, December 15, 2002, at 01:46 PM, crucial felix wrote:


        PyrSlot *receiver = g->sp; // a cocoa
        PyrSlot *array = g->sp - 1; // an array


These are backwards. The last argument is g->sp. The receiver is always g->sp - inNumArgsPushed + 1.
So this should be:

        PyrSlot *receiver = g->sp - 1; // a cocoa
        PyrSlot *array = g->sp; // an array

--
--- james mccartney   james@xxxxxxxxxxxxxx   <http://www.audiosynth.com>
SuperCollider - a real time synthesis programming language for the PowerMac.
<ftp://www.audiosynth.com/pub/updates/SC2.2.16.sea.hqx>