Re: Is there a way to use std.regex at compile-time?

2018-10-16 Thread cosinus via Digitalmars-d-learn
On Tuesday, 16 October 2018 at 14:42:32 UTC, cosinus wrote: Is there a way to use std.regex at compile-time? I would like to `mixin()` the result of this function: ```D string generateVertexStruct() { auto reVertex = ctRegex!(`in\s+(?P\w+)\s+(?P\w+)\s*;`); const vertexStruct =

Is there a way to use std.regex at compile-time?

2018-10-16 Thread cosinus via Digitalmars-d-learn
Is there a way to use std.regex at compile-time?