Request for Comment assert(__ctfe)

Stefan Koch uplink.coder at googlemail.com
Mon Apr 6 02:25:43 UTC 2020


On Monday, 6 April 2020 at 01:28:19 UTC, Timon Gehr wrote:
>
> I don't understand how you would implement it in a way where 
> the above does not work. Have you tested it? I am literally 
> rewriting `in(__ctfe)` to `in{ assert(__ctfe); }` in the parser:
>
> https://github.com/dlang/dmd/blob/master/src/dmd/parse.d#L5060

I see. Well in that case it'll work out of the box.
Although it does make me shudder to change the Tree in the parser 
in such a way.
When was this merged?


More information about the Digitalmars-d mailing list