help-smalltalk
[Top][All Lists]
Advanced

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

Re: [Help-smalltalk] DynamicVariable in a Continuation


From: Paolo Bonzini
Subject: Re: [Help-smalltalk] DynamicVariable in a Continuation
Date: Thu, 26 May 2011 08:54:41 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110428 Fedora/3.1.10-1.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.10

On 05/26/2011 12:29 AM, Derek Zhou wrote:
I am not very good at naming, but can we keep DynamicVariable a subclass of
Notification, and provide 2 methods:
use_during_: for the fast way by making use a ProcessVariable
use_inside_: for the slow way of stackframe backtracing.

Interesting idea if it can be implemented! But how would #value know which one to use? The slow thing is not _setting_ the variable, it is _reading_ it, and it seems to me that without doing stack inspection you cannot know whether you are in a #use:inside: block.

Paolo



reply via email to

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