cannot use UDA with same name as one of field's name

sigod via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Jun 23 23:05:24 PDT 2015


On Tuesday, 23 June 2015 at 23:52:52 UTC, Adam D. Ruppe wrote:
> On Tuesday, 23 June 2015 at 23:14:13 UTC, Steven Schveighoffer 
> wrote:
>> I'm not completely sure on the syntax, try adding some parens.
>
> Yeah, I'm pretty sure it needs to be
>
> @(full.name.here) void foo()

Yep, something like this works.

```
@(vibe.data.serialization.name("_id")) int id;
```

But in this case `alias` looks better.


More information about the Digitalmars-d-learn mailing list