December 10, 2014 Re: Source code annotations alla Java | ||||
---|---|---|---|---|
| ||||
Posted in reply to Justin Johansson | On Thursday, 20 January 2011 at 13:49:30 UTC, Justin Johansson wrote: > Not long ago the Java Language people introduced the idea of annotations together with an annotation processing tool (apt). > > Now perhaps the idea of source code annotations is not actually a Java invention per se, however for someone learning D is there any equivalent idiom [of Java annotations] in the D language? They are here: http://dlang.org/attribute.html#uda |
December 10, 2014 Re: Source code annotations alla Java | ||||
---|---|---|---|---|
| ||||
Posted in reply to Steven Schveighoffer | On Thursday, 20 January 2011 at 14:04:54 UTC, Steven Schveighoffer wrote:
> On Thu, 20 Jan 2011 08:47:28 -0500, Justin Johansson <jj@nospam.com> wrote:
>
>> Not long ago the Java Language people introduced the idea of annotations together with an annotation processing tool (apt).
>>
>> Now perhaps the idea of source code annotations is not actually a Java invention per se, however for someone learning D is there any equivalent idiom [of Java annotations] in the D language?
>
> Haven't used Java since they added annotations, but I think they are like C# attributes?
>
Yes, this is one case where Java copied back from C#.
--
Paulo
|
December 11, 2014 Re: Source code annotations alla Java | ||||
---|---|---|---|---|
| ||||
Posted in reply to Denis Gladkiy | On 12/10/14 1:16 AM, Denis Gladkiy wrote:
> On Thursday, 20 January 2011 at 13:49:30 UTC, Justin Johansson wrote:
>> Not long ago the Java Language people introduced the idea of
>> annotations together with an annotation processing tool (apt).
>>
>> Now perhaps the idea of source code annotations is not actually a Java
>> invention per se, however for someone learning D is there any
>> equivalent idiom [of Java annotations] in the D language?
>
> They are here: http://dlang.org/attribute.html#uda
This is an almost-4-year-old thread.
-Steve
|
Copyright © 1999-2021 by the D Language Foundation