Concerns about using struct initializer in UDA?
Andre Pany via Digitalmars-d
digitalmars-d at puremagic.com
Fri May 12 12:07:10 PDT 2017
On Friday, 12 May 2017 at 10:25:07 UTC, Seb wrote:
> On Friday, 12 May 2017 at 10:13:02 UTC, Andre Pany wrote:
>> Does it make sense to open a DIP? It would make UDA quite nice
>> to use if you can group several attributes into a struct.
>> Or someone know whether there are already known issues why it
>> isn't possible?
> The entire point of a DIP is to do this research for everyone
> and summarize it an easy-to-access and easy-to-find fashion ;-)
> FWIW there is an abandoned DIP for in-place struct
> initialization (https://github.com/dlang/DIPs/pull/22) - it
> might make sense to invest the effort to revive it from the
If I find time I will create a new dip. The dip you mentioned is
about a different usage scenario. My proposal is only about
sructures used as UDA.
As far as I remember the old dip was not possible due to comma
syntax which is now in deprecation phase.
More information about the Digitalmars-d