www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 17070] New: std.regex.match doesn't work at compile time


          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


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