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: nob...@puremagic.com
          Reporter: timothee.co...@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

--

Reply via email to