aarti_pl escribió:
bearophile pisze:
aarti_pl:
What you mean saying "attributes"?<
See for example:
http://en.wikipedia.org/wiki/Java_annotation
It's not an esoteric thing, It's a way to add some extra semantics to
a program.
In a low-level language like D there are other possible purposes for
annotations/attributes (that aren't useful in Java), you can add
semantics that helps avoid bugs or can be used by the optimizer to
increase the efficiency of the compiled program (GCC too has some of
such function/variable attributes), I can show some examples.
Bye,
bearophile
Thanks for answer! I know Java annotations - I just didn't know what you
meant saying "attribute".
Ah, it's because in C# they are called attributes. You know, C# and Java
always try to come up with the same things but with different names. :-P