property API design

monkyyy crazymonkyyy at gmail.com
Sat Sep 12 22:37:00 UTC 2026


On Saturday, 12 September 2026 at 22:12:25 UTC, DanielG wrote:
> On Saturday, 12 September 2026 at 21:45:19 UTC, Richard (Rikki) 
> Andrew Cattermole wrote:
>> Forget @property, that's on the kill list as it doesn't do 
>> anything useful for properties and all attempts to get it 
>> doing something useful have failed. Otherwise its a fine idea.
>
> I see, thank you!

> `@property alias`

also note aliases aint real

```d
import std;
@"hi" void foo() {}
@"bye" alias bar=foo;
unittest{
     getUDAs!(foo,string).writeln;// hi
     getUDAs!(bar,string).writeln;// also hi
}
```


More information about the Digitalmars-d-learn mailing list