[self-interest] creating local variables [resolved]
notebook22312 at gmail.com
Wed Sep 19 04:20:30 UTC 2018
Perfect! Thank you!
On 2018年09月19日 08:39, David Ungar ungar at mac.com [self-interest] wrote:
> [| :arg1. tmpVar |
> tmpVar: 5.
> arg1 + tmpVar.
> ] value: 1.
> Should work IIRC.
>> On Sep 18, 2018, at 3:54 PM, notebook notebook22312 at gmail.com
>> <mailto:notebook22312 at gmail.com> [self-interest]
>> <self-interest at yahoogroups.com
>> <mailto:self-interest at yahoogroups.com>> wrote:
>> I'm trying to use local variables in a block, that are writable and
>> do not come from the parameter list.
>> So something like this:
>> [| :arg1. |
>> tmpVar: 5.
>> arg1 + tmpVar.
>> ] value: 1.
>> But I get told that "tmpVar: is not found"
>> Or does self not support such kind of local variables?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Self-interest