How to avoid ctRegex (solved)

cy via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Aug 22 21:06:34 PDT 2016


On Sunday, 21 August 2016 at 21:18:11 UTC, ag0aep6g wrote:

> I may be missing the point here, but just putting `auto pattern 
> = regex("foobar");` at module level works for me.

Really? I thought global variables could only be initialized with 
static stuff available during compile time, and you needed a 
"static this() {}" block to initialize them otherwise.


More information about the Digitalmars-d-learn mailing list