Named UDA's

Dicebot public at dicebot.lv
Thu Aug 1 05:28:55 PDT 2013


On Thursday, 1 August 2013 at 11:02:00 UTC, JS wrote:
> Anyways, Just an idea I had when trying to make attributes more 
> useful.

struct Name
{
     string data;
}

@Name("hello")
void foo();

I favor this approach much more because of strong typing.


More information about the Digitalmars-d-learn mailing list