Tuple literal syntax

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Thu Oct 7 08:36:03 PDT 2010


On 10/7/10 10:13 CDT, Kagamin wrote:
> Andrei Alexandrescu Wrote:
>
>> struct Coord
>> {
>>       int x, y, z;
>> }
>>
>> one iota typesafer than
>>
>> alias Tuple!(int, "x", int, "y", int, "z") Coord;
>
> Is there a real need for an alternative way to declare structs?

Yes.

Andrei


More information about the Digitalmars-d mailing list