property / getProperty() / setProperty()

bearophile bearophileHUGS at lycos.com
Sat Aug 1 12:47:23 PDT 2009


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



More information about the Digitalmars-d mailing list