Hi,
I believe we are missing a first class entity for a PragmaType. Essentially, I think that the class side of the Pragma class should become a full object.
In fact, we already have a rudimentary version of this in Spotter because we needed an object to be able to browse all definitions of a certain pragma.
So, now, I extended it with the concept of a user which is the list of all senders minus the methods that are annotated with a pragma. This helps distinguish the meaning of a pragma by looking at the code where it is being used. Perhaps we can find a better name than users.
You can see these users in the inspector and in spotter:
I think we should build on this.
What do you think?
Cheers,
Doru
On Jun 24, 2016, at 3:54 PM, Alexandre Bergel <alexandre.bergel@me.com> wrote:
Hi!
A pragma may be very obscure. For example, I do:
Pragma allInstances anyOne
=> <debuggerCompleteToSender>
If I want to know more about this <debuggerCompleteToSender> is actually quite challenging.
I see many methods having that pragma, but not idea what it is for.
I see that Halt>>signalerContext and Process>>complete: that use that pragma somehow. But still, I have no idea when I should use that pragma in my method.
What about having a way to comment pragma? Maybe something like
-=-=-=-=-=-=
Object subclass: #Pragma
instanceVariableNames: 'method keyword arguments comment'
-=-=-=-=-=-=
And a simple way to annotate pragmas?
Just an idea.
Cheers,
Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.