Tuple literal syntax

Kagamin spam at here.lot
Thu Oct 7 08:13:04 PDT 2010


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?


More information about the Digitalmars-d mailing list