HELP! with plugins

Bob Arning arning at charm.net
Tue Sep 2 22:04:46 UTC 2003


On Tue, 2 Sep 2003 14:58:38 -0600 (MDT) Eric Scharff <Eric.Scharff at Colorado.EDU> wrote:
>(Apologies for nagging folks again, but I never received answers to any of
>my plugin questions.  While creating plugins may not be nearly as exciting
>as discussing licensing issues, it is far more important to my current
>project. :) )

Eric,

I'm not sure I can explain all the whys of this, but it appears that other senders of #doPrimitive:withArguments: were from methods where the arguments were already on the stack (your error hapens trying to copy from this stack into the interpreter proxy).

I converted your snippet to a class method:

=================================================================
'From Squeak3.5 of ''11 April 2003'' [latest update: #5180] on 2 September 2003 at 6:01:53 pm'!

!MyPlugin class methodsFor: 'as yet unclassified' stamp: 'raa 9/2/2003 18:00'!
TESTinnerLoopX: a y: b limit: c

	^MyPlugin doPrimitive: 'innerLoopX:y:limit:' withArguments: {a. b. c}! !

=================================================================

and, now,

	MyPlugin TESTinnerLoopX: 1 y: 1 limit: 1

will run.

Cheers,
Bob



More information about the Squeak-dev mailing list