[Pharo-dev] [Reflectivity] Links on Slots

Marcus Denker marcus.denker at inria.fr
Wed Sep 30 05:49:54 EDT 2015


Hi,

basis for annotating instanceVariables (Slots) with meta links is now working.
	https://pharo.fogbugz.com/f/cases/16669/MetaLinks-on-Slots

This test is green:

testReifySlotName
    | iVar instance link |
    iVar := ReflectivityExamples slotNamed: #ivar.

    link := MetaLink new 
        metaObject: self; 
        selector: #tagExec:;
        arguments: #(name).

    iVar link: link.
    self assert: iVar hasMetalink.
    self assert: (ReflectivityExamples >> #exampleIvarRead) class = ReflectiveMethod.
    self assert: (tag isNil).
    instance := ReflectivityExamples new.
    self assert: (instance exampleIvarRead = 33).
    self assert: (tag = #ivar).
    link uninstall.






More information about the Pharo-dev mailing list