Bug? tupleof and const string = ""

Andre andre at s-e-a-p.de
Thu Feb 13 08:37:22 PST 2014


Hi,

could you have a look whether this is a bug with tupleof?
In case you have a const string with a default value,
the attribute is not in the tupleof list.

struct A {
	const string a = "abc";
	string d;
}

void main(){
	assert(A().tupleof.length == 2); // fails -> length = 1
}

Kind regards
André


More information about the Digitalmars-d-learn mailing list