Regex
Robert Fraser
fraserofthenight at gmail.com
Thu Jul 9 14:15:03 PDT 2009
BLS wrote:
> Vladimir Voinkov wrote:
>> std.regex can't be used in compile time function call. It's quite
>> frustrating...
>
> see dsource.org .. afaik there is a compile time regex project. hth
http://www.dsource.org/projects/scregexp
But the generated functions aren't CTFE-compatible AFAIK. A CTFE regex
engine would be um... "tricky" to say the least. About 50GB of memory
tricky (on DMD, LDC has a GC... though, it's still just as slow with
CTFE). Really, if you need that level of code manipulation, a
preprocessor is probably a better choice.
More information about the Digitalmars-d-learn
mailing list