When using the #compile: selector to dynamically create a selector, is
there a way (e.g., a pragma) to specify the category for the dynamic
selector in a way that Pharo will see it? I tried, for example:

s := String new writeStream.
s nextPutAll: 'foo' ; cr ; nextPutAll: '  <category: ''accessor''>' ; cr ;
nextPutAll: '  ^fooVar' ; cr.
Foo compile: s contents.

Which created the following selector just fine:

foo
    <categor: 'accessor'>
    ^ fooVar

But Pharo considers it uncategorized. I'm just wondering if it's possible.

Thanks
Mark

Reply via email to