Am 06.11.2012 14:14, schrieb Adam D. Ruppe:
On Tuesday, 6 November 2012 at 07:55:51 UTC, Walter Bright wrote:
User Defined Attributes (UDA) are compile time expressions that
can be attached to a declaration.

Hmmm, it didn't work on the most important place for my use case,
function parameters:

void a(["test"] int foo) {
      pragma(msg, __traits(getAttributes, foo));
}

sad - but its still very young feature :)

im using something like an description on my methods to describe parameter "features" for an resource manager - something like "read", "write", "copy", "read_write" etc.

to have this at compiletime available by using UDAs on parameters + an compiletime generator would be absolutely briliant

my vote +1 for UDAs on parameters

Reply via email to