Yes because we can do more after that :)

Stef

Le 1/5/15 13:04, Yuriy Tymchuk a écrit :
Thanks Marcus! This will be very useful.

Uko

On 01 May 2015, at 12:51, Marcus Denker <marcus.den...@inria.fr> wrote:


On 01 May 2015, at 12:41, Yuriy Tymchuk <yuriy.tymc...@me.com> wrote:

Hi, is it possible to do a halt whenever some instance variable is written?
Soon… I am working on it.

Make a class TT with ivar ‘tt’, method
tt
        tt := 1.


Then we can define a meta-link to call "Halt now”:


| link |
link := MetaLink new
                                metaObject: Halt;
                                selector: #now.

This we can install on the Slot itself:
                                
(TT slotNamed: #tt) link: link.


If we now call

TT new tt

it will tell you that we need to implement #write:to: in LinkWrapper… ;-)
Which means a lot of the basic machinery is working!

Next week...

        Marcus




Reply via email to