betterC and CTFE
Max Samukha
maxsamukha at gmail.com
Sat Jan 7 08:22:31 UTC 2023
On Saturday, 7 January 2023 at 02:09:00 UTC, Walter Bright wrote:
> So, making some experiments, I found it usually worked.
> Searching bugzilla, I found one case that didn't:
>
> https://issues.dlang.org/show_bug.cgi?id=20101
>
> and fixed it:
>
> https://github.com/dlang/dmd/pull/14789
>
Simple test cases still don't compile:
string foo()()
{
string a, b;
return a ~ b;
}
enum s = foo();
./dmd -c -betterC test.d
test.d(4): Error: array concatenation of expression `a ~ b`
requires the GC which is not available with -betterC
More information about the Digitalmars-d
mailing list