On 21 Jul 2014, at 15:51, Marcus Denker <[email protected]> wrote:
> > On 21 Jul 2014, at 11:28, Marcus Denker <[email protected]> wrote: > >> Hello, >> >> One of the questions with having meta objects for variables (Slots and >> Globals) is: For what is is good? >> >> Here is one example… in early stage but working. >> > > Now working: MetaLinks on Class Variables. > > |link | > link := MetaLink new > metaObject: Halt; > selector: #now. > > (TT classVariableNamed: #T) link: link. > > … and any access of the class var will trigger a Halt. > > https://pharo.fogbugz.com/f/cases/13630/Links-on-Class-Variables > > next: Globals, this means > > Object binding link: link > > should trigger the link whenever the global Object is read anywhere… This now crashes your image as expected… ;-) https://pharo.fogbugz.com/f/cases/13632/MetaLinks-for-Globals Marcus
