using regex at compile time errors out! Error: static variable `thompsonFactory` cannot be read at compile time

Adam D. Ruppe destructionator at gmail.com
Sat Oct 5 00:42:01 UTC 2019


On Thursday, 3 October 2019 at 23:47:17 UTC, Brett wrote:
> Error: static variable `thompsonFactory` cannot be read at 
> compile time

std.regex isn't ctfe compatible, alas.

even the ctRegex doesn't work at ctfe; it *compiles* the regex at 
compile time, but it is not capable of actually *running* it at 
compile time.

(the regular regex is compiled and run at runtime)


More information about the Digitalmars-d-learn mailing list