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 16:00:19 PDT 2015


On Tuesday, 23 June 2015 at 22:10:43 UTC, Steven Schveighoffer 
wrote:
> You can use @full.path.name

```
Error: unexpected ( in declarator
Error: basic type expected, not "_id"
Error: found '"_id"' when expecting ')'
Error: no identifier for declarator .data.serialization.name(int)
Error: semicolon expected following function declaration
Error: declaration expected, not ')'
```

> You may be able to use @.name, but I'm not sure that parses.

```
Error: @identifier or @(ArgumentList) expected, not @.
Error: valid attributes are @property, @safe, @trusted, @system, 
@disable
Error: unexpected ( in declarator
Error: basic type expected, not "_id"
Error: found '"_id"' when expecting ')'
Error: no identifier for declarator .name(int)
Error: semicolon expected following function declaration
Error: declaration expected, not ')'
```



More information about the Digitalmars-d-learn mailing list