digitalmars.D.bugs - [Issue 17070] New: std.regex.match doesn't work at compile time
- via Digitalmars-d-bugs (23/23) Jan 07 2017 https://issues.dlang.org/show_bug.cgi?id=17070
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 puremagic.com Reporter: timothee.cour2 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 --
Jan 07 2017