[self-interest] creating local variables

David Ungar ungar at mac.com
Tue Sep 18 23:39:01 UTC 2018


[| :arg1. tmpVar | 
  tmpVar: 5.
  arg1 + tmpVar.
] value: 1.


Should work IIRC.

> On Sep 18, 2018, at 3:54 PM, notebook notebook22312 at gmail.com [self-interest] <self-interest at yahoogroups.com> wrote:
> 
> Hello,
> 
> 
> 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?
> 
> 
> regards
> Chris
> 
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.selflanguage.org/pipermail/self-interest/attachments/20180918/8d6a2cfc/attachment.html>


More information about the Self-interest mailing list