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
_______________________________________________
help-smalltalk mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-smalltalk