Re: Strange behavior of Pragma>>#allNamed:in:

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: Strange behavior of Pragma>>#allNamed:in:

Nicolai Hess-3-2


2016-02-23 22:19 GMT+01:00 Julien Delplanque <[hidden email]>:
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


Reply | Threaded
Open this post in threaded view
|

Re: Strange behavior of Pragma>>#allNamed:in:

Ben Coman
On Wed, Feb 24, 2016 at 5:19 AM, Julien Delplanque <[hidden email]> 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