User Defined Attributes

Walter Bright newshound2 at digitalmars.com
Thu Nov 8 11:39:34 PST 2012


On 11/8/2012 4:37 AM, Jacob Carlborg wrote:
> On 2012-11-08 11:56, Walter Bright wrote:
>
>> A plugin would apply globally, wouldn't it?
>
> Yes, but that wouldn't make the attribute global. I just had a quick look on the
> Annotation Processing Tool (APT) available in Java. This tool will run an
> annotation processor over some specified Java files. It will then generate a new
> set of files with the result of the annotation process. In the annotation
> processor you have to specify what annotations you want to process. You can
> either specify you want to process all annotations, "*", or a single annotation,
> "foo.bar.Baz".
>
> http://docs.oracle.com/javase/1.5.0/docs/guide/apt/GettingStarted.html
>

I believe that does have the essential effect of making the attribute global.


More information about the Digitalmars-d-announce mailing list