Create const regex?

Meta via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Jun 7 04:33:34 PDT 2014


On Saturday, 7 June 2014 at 00:48:59 UTC, hane wrote:
> 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.

Do you remember where you saw this in Phobos? It was probably 
unintended, and should be removed.


More information about the Digitalmars-d-learn mailing list