Request for Comment assert(__ctfe)
Steven Schveighoffer
schveiguy at gmail.com
Wed Apr 8 19:04:48 UTC 2020
On 4/8/20 2:53 PM, Jacob Carlborg wrote:
> Regardless if anyone does it or not, it's still a breaking change. Then
> we can of course argue the impact of the breaking change, how much code
> will actually break.
another interesting case:
void foo()
{
assert(__ctfe);
}
void main(string[] args)
{
if(args.length == 0)
foo(0);
}
Arguably, the call will never happen. But it won't compile now.
As I said a minute ago, this is a breaking change, and it's one we
should make.
-Steve
More information about the Digitalmars-d
mailing list