New role introspection code

Brian T. Rice water at tunes.org
Wed Sep 15 20:46:19 PDT 2004


Brian T. Rice wrote:

> Some methods (but not nearly enough) for looking into role objects are 
> provided in src/mobius/vm/interp/map.slate, namely rolesNamed:, 
> rolesAt:, rolesNamedAt:. I need to work on these more since there are 
> methods that will not show up in my initial revision, but these are 
> enough for you to inspect with right now. This library is also 
> bootstrapped in to the standard image, so you can try this "out of the 
> box".

One quick way to use these is to run (say):

(Root traits rolesAt: 0) collect: [| :role | role selector] into: Set 
newEmpty.

or variations on that (this works for each of the methods mentioned above).

-------------- next part --------------
A non-text attachment was scrubbed...
Name: water.vcf
Type: text/x-vcard
Size: 208 bytes
Desc: not available
Url : /archives/slate/attachments/20040915/8cca8c32/water.vcf


More information about the Slate mailing list