Concerns about using struct initializer in UDA?

Stefan Koch via Digitalmars-d digitalmars-d at puremagic.com
Thu May 11 04:57:01 PDT 2017


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.


More information about the Digitalmars-d mailing list