Optional extra return value? Multiple return values with auto?

David d at dav1d.de
Tue Jul 24 01:56:20 PDT 2012


Am 24.07.2012 05:25, schrieb ReneSac:

I whish there was:

auto foo() {
     return Tuple!("foo", "bar", 1, new Custum());
}

void main() {
     auto (s1, s2, i, c) = foo();
}


More information about the Digitalmars-d-learn mailing list