Re: Dmd doesn't like tuples or me :>

2015-12-11 Thread Ali Çehreli via Digitalmars-d-learn
On 12/11/2015 05:41 PM, Enjoys Math wrote: > import std.stdio; > import std.typecons; > > int main(string[] argv) > { > auto value = Tuple(5, 6.7, "hello"); I don't understand how it relates to the error message but you should use lowercase 'tuple' there: auto value = tuple(5, 6.7,

Dmd doesn't like tuples or me :>

2015-12-11 Thread Enjoys Math via Digitalmars-d-learn
import std.stdio; import std.typecons; int main(string[] argv) { auto value = Tuple(5, 6.7, "hello"); assert(value[0] == 5); assert(value[1] == 6.7); assert(value[2] == "hello"); writeln("Hello D-World!"); return 0; } // Standard example copied from the