← Back to index
|
Original Bugzilla link
Bug 17070 – std.regex.match doesn't work at compile time
Status
RESOLVED
Resolution
DUPLICATE
Severity
enhancement
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
x86
OS
All
Creation time
2017-01-07T23:50:07Z
Last change time
2017-08-25T10:18:39Z
Assigned to
No Owner
Creator
Timothee Cour
Comments
Comment #0
by timothee.cour2 — 2017-01-07T23:50:07Z
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
Comment #1
by dmitry.olsh — 2017-08-25T10:18:39Z
*** This issue has been marked as a duplicate of issue 12687 ***