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

	Marcus

  

I am starting to see how this can provide some great value, particularly for tracing multi-threaded apps (which even though Pharo is currently not much multi-threaded, some parts of applications might be, and maybe it helps open the door for Pharo to move that way in the future.)
cheers -ben

Reply via email to