Create const regex?

AntonSotov via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Jun 6 05:01:53 PDT 2014


const r1 = regex("bla");
matchFirst( "big string", r1 );  //  ERROR!

immutable r2 = regex("bla"); //  ERROR!

Why can I not use const/immutable regex?



More information about the Digitalmars-d-learn mailing list