Improvements to the annotation functionality

Andre Pany andre at s-e-a-p.de
Thu Jan 10 06:41:54 UTC 2019


On Thursday, 10 January 2019 at 04:46:28 UTC, Brian wrote:
> I want and I think:
>
> ```D
>
> struct A
> {
>     int x = 1;
>     int y = 2;
>     int z = 3;
>     string a = "a";
>     string b = "b";
>
>     this(int x, int y, int z, string a, string b)
>     {
>         this.x = x;
>         thix.y = y;
>         this.z = z;
>         this.a = a;
>         this.b = b;
>     }
> }
>
> @A(1, 2, 3, "a", "b")
> void test1()
> {
>     // TODO
> }
>
>
> @A(z=9, b="bbb")
> void test2()
> {
>     // TODO
> }
>
> ```
>
> Member assignments can be specified, seem test2().

https://github.com/wilzbach/DIPs/blob/b1283b455b635d7dcbc2c871d2aa47cc67190059/DIPs/DIP1xxx-sw.md

How can we proceed with this DIP?

Kind regards
Andre


More information about the Digitalmars-d mailing list