On Tuesday, 9 July 2019 at 17:59:24 UTC, Max Haughton wrote:
On Tuesday, 9 July 2019 at 17:48:52 UTC, Andrey wrote:
Hello,
I have got a problem with compile-time calulations.
I have some code generator that should create some long string
of code during CT and after generation I mixin it. If I run it
normally - in run time - then there is no error and I get
expected output - string with size ~ 3.5 MB.
If I run it in CT then I recieve an error:
[...]
I don't understand why...
The only operation in my generator is string concatination:
_result ~= "some code...".
Are you using the -lowmem flag? This enables the GC during
compilation i.e. you might be running out of memory (CTFE is
not efficient with memory during evaluation)
I tried to turn on this flag but no success. The same error...