Strange behavior of Pragma>>#allNamed:in:
Hi, I experience a strange behavior with Pragma>>#allNamed:in: When I use Pragma allNamed: #myPragma in: MyClass It works as expected. But when instead of hard-coding "MyClass" I use "self class" in an method (instance side), Pragma allNamed: #myPragma in: self class returns an empty array. What can I do about it? Julien
2016-02-23 22:19 GMT+01:00 Julien Delplanque <julien@tamere.eu>:
Hi,
I experience a strange behavior with Pragma>>#allNamed:in:
When I use
Pragma allNamed: #myPragma in: MyClass
It works as expected.
But when instead of hard-coding "MyClass" I use "self class" in an method (instance side),
Pragma allNamed: #myPragma in: self class
Works for me, where is the pragma defined, on a class or instance side method?
returns an empty array.
What can I do about it?
Julien
On Wed, Feb 24, 2016 at 5:19 AM, Julien Delplanque <julien@tamere.eu> wrote:
I experience a strange behavior with Pragma>>#allNamed:in:
When I use
Pragma allNamed: #myPragma in: MyClass
It works as expected.
But when instead of hard-coding "MyClass" I use "self class" in an method (instance side),
So what do you get from...? Transcript crShow: self class. Pragma allNamed: #myPragma in: self class cheers -ben
participants (3)
-
Ben Coman -
Julien Delplanque -
Nicolai Hess