Concerns about using struct initializer in UDA?
Andre Pany via Digitalmars-d
digitalmars-d at puremagic.com
Fri May 12 03:13:02 PDT 2017
On Thursday, 11 May 2017 at 11:57:01 UTC, Stefan Koch wrote:
> On Thursday, 11 May 2017 at 11:36:17 UTC, Andre Pany wrote:
>> On Thursday, 11 May 2017 at 10:51:09 UTC, Stefan Koch wrote:
>>> On Thursday, 11 May 2017 at 10:49:58 UTC, Andre Pany wrote:
>>>> [...]
>>>
>>> We have that syntax already.
>>
>> I do not understand. Should the syntax I have written already
>> work as I expect or do you mean my proposal is not possible as
>> the syntax is ambiguous?
>>
>> Kind regards
>> André
> I thought it should have worked already.
>
> My apologies the struct literal initialization syntax is
> unsupported because of the parser implementation.
>
> I don't know if you would introduce new ambiguities; I suspect
> that you wouldn't.
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?
Kind regards
André
More information about the Digitalmars-d
mailing list