Non-constant expression error

Márcio Faustino m.faustino at no.spam.gmail.com
Wed Aug 22 03:12:36 PDT 2007


Hi,

Does someone knows why isn't possible to do something like this:

//-------------------------------------------
import std.regexp;

class A {
	RegExp pattern = new RegExp(".*");
}

RegExp[] patterns = [new RegExp(".*")];
//-------------------------------------------

Thanks,


More information about the Digitalmars-d-learn mailing list