We have slots now and a unified property API that you can use on
classes and methods. Define a class with three ivars:
 
Object subclass: #Foo
    instanceVariableNames: 'one two three'
    classVariableNames: ''
    category: 'Bar'
 
Take the slot and put a property on it:
 
  Foo slots first propertyAt: #importance put: #high.
 
If you then query:
 
   Foo slots first properties

it will give
 
 "a WeakKeyDictionary(#importance->#high )"

Hope that helps
Bye
T.
 
Gesendet: Freitag, 11. September 2015 um 20:05 Uhr
Von: "Hernán Morales Durand" <hernan.morales@gmail.com>
An: "Pharo Development List" <pharo-dev@lists.pharo.org>
Betreff: [Pharo-dev] Annotating instance variables
 
I saw some interesting reflection progress in Pharo 5. I wonder if there is a feature to rank instance variables. For example, from the browser I want to assign a category "important" to an instance variable, or "possibly useless", etc. for later refactorings.

Is such thing "easily" possible now? There is API support from Reflectivity maybe?
 
Cheers
 
Hernán