"extern" template instantiation
Dicebot
public at dicebot.lv
Wed Oct 23 04:58:14 PDT 2013
Using `enum` with ctRegex is discouraged because it is a dumb
copy-paste upon every enum usage. I'd recommend to use global
variable initialized during compile-time:
```
auto r =
ctRegex!(r"^(\w+)\s+([a-zA-Z0-9/]+)\?a=(\w+)&b=(\w+)&c=(\w+)([&\D+=\w+)]*)&y=([0-9A-Fa-z]+)&z=([0-9A-Fa-z]+)$");
```
Though it is pretty complex ctRegex and compiling it is a good
stress test for any compiler :)
More information about the Digitalmars-d-learn
mailing list