help-smalltalk
[Top][All Lists]
Advanced

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

[Help-smalltalk] Re: [RFT] scripting improvements, part 2


From: Paolo Bonzini
Subject: [Help-smalltalk] Re: [RFT] scripting improvements, part 2
Date: Fri, 30 Mar 2007 09:55:56 +0200
User-agent: Thunderbird 1.5.0.10 (Macintosh/20070221)

Stephen Compall wrote:
> On Thu, 2007-03-29 at 10:01 +0200, Paolo Bonzini wrote:
>> One known bug is that it is possible to use "#{a}"
>> on the automatically defined temporaries (because
>> they are actually globals in this implementation).
>> Please let me know if you thing this bug/feature
>> should be kept.
> 
> I'd call it a feature, unless the scripting syntax will make it possible
> for method definitions to refer to "lexical globals":

No, it won't.  The temporaries don't leak, it is just an
implementation detail that they are implemented using an
internal BindingDictionary.

(Actually, the "feature" I referred to was the possibility to
use #{a} onan automatically defined temporary).

> Sorry if I got the syntax wrong, but hopefully you see it.

Sure, that was clear.  Your example could be actually as
simple as

a := 42.
Object compile: 'gotcha "shouldn't compile!" ^a'.

Paolo




reply via email to

[Prev in Thread] Current Thread [Next in Thread]