A CTFE Segfault (with explanation, but I'm not sure what the fix

bearophile bearophileHUGS at lycos.com
Sun Nov 21 14:39:05 PST 2010


Gareth Charnock:

> struct LeafType {
> 	string Compile_not_ovloaded() {
> 		return "expression";
> 	}
> };

Note that D structs don't require the ending semicolon, so in practice it is not used. And in D method names start with a lower case.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list