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…
Marcus