[Pharo-dev] [Ann] Class meta annotations

Guillermo Polito guillermopolito at gmail.com
Wed Oct 4 03:48:30 EDT 2017

I'd even call them First class pragmas from that point of view :P

I wonder what are the side-effects of instantiating the annotation yourself
in a method.

    ^MySpecialAnnotation new

I mean, I understand we can use the class state to initialize the
annotation. But the fact that the annotation is cached after its first
instantiation means that the annotation will not necessarily evolve as the
class evolves. Do we want annotations to be stateless? Or depend only in

I wonder then what is the main difference with

    <classAnnotation: MySpecialAnnotation>

And what is the impact of having an annotation with parameters.

On Tue, Oct 3, 2017 at 9:02 PM, Sean P. DeNigris <sean at clipperadams.com>

> Denis Kudriashov wrote
> > If you will use method pragma then you will repeat logic of this library:
> > In your code you will need...
> So it sounds like it's pragmas++ - the functionality of pragmas plus some
> other stuff you may need that you'd have to roll on your own
> -----
> Cheers,
> Sean
> --
> Sent from: http://forum.world.st/Pharo-Smalltalk-Developers-f1294837.html


Guille Polito

Research Engineer

Centre de Recherche en Informatique, Signal et Automatique de Lille

CRIStAL - UMR 9189

French National Center for Scientific Research - *http://www.cnrs.fr

*Web:* *http://guillep.github.io* <http://guillep.github.io>

*Phone: *+33 06 52 70 66 13
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pharo.org/pipermail/pharo-dev_lists.pharo.org/attachments/20171004/fe35369d/attachment-0002.html>

More information about the Pharo-dev mailing list