Annotations, was Re: Custom attributes C#
Julio César Carrascal Urquijo
jcarrascal at gmail.com
Thu Sep 27 18:56:20 PDT 2007
Jari-Matti Mäkelä wrote:
> Makes me think that maybe e.g. 'unittest', 'deprecated' and pragma should
> have been annotations instead of keywords. Annotations feel a much more
> extensible facility than a fixed set of keywords. I'm not really sure what
That's exactly how it's done in .NET:
ObsoleteAttribute:
http://msdn2.microsoft.com/en-us/library/system.obsoleteattribute.aspx
TestFixtureAttribute and TestAttribute in NUnit:
http://nunit.org/index.php?p=attributes&r=2.4.3
> benefits the C# syntax has over @java @annotations, but D (or at least
> tools) could really have a use for annotations in general. The language
> should not dictate what 3rd party tools can and cannot do.
They're pretty much the same thing.
--
Julio César Carrascal Urquijo
http://jcesar.totumo.net/
More information about the Digitalmars-d
mailing list