[Issue 17070] New: std.regex.match doesn't work at compile time
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sat Jan 7 15:50:07 PST 2017
https://issues.dlang.org/show_bug.cgi?id=17070
Issue ID: 17070
Summary: std.regex.match doesn't work at compile time
Product: D
Version: D2
Hardware: x86
OS: All
Status: NEW
Severity: enhancement
Priority: P1
Component: phobos
Assignee: nobody at puremagic.com
Reporter: timothee.cour2 at gmail.com
http://stackoverflow.com/questions/30952768/execute-compile-time-compiled-regex-at-compile-time
```
import std.regex;
enum truth = "baba".matchFirst(ctRegex!`[ab]+$`) ? true : false;
void main() {}
Error: malloc cannot be interpreted at compile time, because it has no
available source code
```
Would be nice to support this
--
More information about the Digitalmars-d-bugs
mailing list