User Defined Attributes

Jacob Carlborg doob at me.com
Thu Nov 8 04:37:02 PST 2012


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

-- 
/Jacob Carlborg


More information about the Digitalmars-d-announce mailing list