Request for Comment assert(__ctfe)

Dennis dkorpel at gmail.com
Wed Apr 8 09:11:45 UTC 2020


On Wednesday, 8 April 2020 at 08:42:52 UTC, Stefan Koch wrote:
> When existing the language is perfectly able to express (only 
> runs at ctfe).

assert(__ctfe) does not express that you STATICALLY know it only 
runs at ctfe, it is a RUNTIME error and it is impossible to 
statically decide whether the function may actually get called 
outside ctfe context.


More information about the Digitalmars-d mailing list