Create const regex?

hane via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Jun 6 17:48:57 PDT 2014


On Friday, 6 June 2014 at 15:42:41 UTC, Meta wrote:
> You should not do this, as it will create a new regex 
> everywhere you use it. Unlike const or immutable, enum in this 
> situation is more or less like a C macro.
>
> #define r1 regex("bla")

I see. Thanks.


More information about the Digitalmars-d-learn mailing list