On Wednesday, 12 April 2017 at 12:00:27 UTC, Martin Tschierschke
wrote:
It there a way to use "replaceAll" at compile time?
Regards mt.
Not yet :)
I assume it would bring the current system to it's needs.
I you want to experiment you could replace malloc with new.
Hello,
when trying to process an string at compile time with
...
auto reg = ctRegex!`as\ [a-z]+`;
enum replaced = replaceAll(call,reg,"");
I get:
/usr/include/dmd/phobos/std/regex/package.d(708,34): Error:
malloc cannot be interpreted at compile time, because it has no
available source code