Why enum of structs are not initialised?

mimocrocodil 4denizzz at gmail.com
Thu Aug 11 11:56:17 PDT 2011


code:

private struct request_variant {
	package:
		immutable string sql_query;
}

enum test : request_variant {
	current_time = request_variant( "SELECT now()" ),
	//users = { sql_query: "SELECT 'users list'::text" }
}

causes syntax error if I am uncommit second string in enum


More information about the Digitalmars-d-learn mailing list