Please help with valueWithArguments: mystery
Bob Arning
arning at charm.net
Tue Feb 13 23:41:40 UTC 2001
On Tue, 13 Feb 2001 15:24:44 -0800 Ned Konz <ned at bike-nomad.com> wrote:
>In the step method, I'm doing this:
>
> targetBlock valueWithArguments: inputs
>
>where inputs is (in this case) a 2-element WeakArray in an instance variable.
>
>Unfortunately, I get errors when I execute this code that say that the
>BlockContext is already being executed! (there are two of these Morphs in
>existence at this time, so I get two debuggers popping up).
Ned,
The argument tou pass to #valueWithArguments: is going stright to the VM which is usually real picky about the class of each argument.
targetBlock valueWithArguments: (Array withAll: inputs)
would work. Or you could patch up #valueWithArguments: to do this on a failure.
Cheers,
Bob
More information about the Squeak-dev
mailing list
|