enum and tuples

anonymous anonymous at example.com
Fri Aug 9 13:18:21 PDT 2013


On Friday, 9 August 2013 at 06:16:20 UTC, captaindet wrote:
> a) if we are not allowed to put typetuples in enums, why is it 
> not an error?
[...]
> enum er = TypeTuple!("one", "two", "three");

FWIW, it's an error in the current git head dmd: "Error: cannot 
cast "one" to (string, string, string) at compile time".


More information about the Digitalmars-d-learn mailing list