Request for Comment assert(__ctfe)
Stefan Koch
uplink.coder at gmail.com
Mon Apr 6 14:21:36 UTC 2020
On Monday, 6 April 2020 at 14:14:48 UTC, Dominikus Dittes Scherkl
wrote:
> On Monday, 6 April 2020 at 13:49:19 UTC, Atila Neves wrote:
>> On Monday, 6 April 2020 at 13:41:52 UTC, Stefan Koch wrote:
>>> For now assert(__ctfe); enables people to manually mark their
>>> ctfe-only, functions.
>>
>> What about `in(__ctfe)` instead?
> It was already explained, this will expand to the same code, so
> yes, both will work.
Well technically I had to do a bit of work for InContracts
("Requires" in dmd lingo), because for them you need to unwrap
the scopeStatements.
More information about the Digitalmars-d
mailing list