newbie question: Can D do this?

Jakob Ovrum jakobovrum at gmail.com
Mon Dec 19 21:34:02 PST 2011


On Monday, 19 December 2011 at 19:01:10 UTC, Simen Kjærås wrote:
> import std.typetuple : TypeTuple;
> import std.typecons : tuple;
>
> TypeTuple!(a, b) = tuple(b,a);

There is a pull request implementing multiple variable 
declarations:
https://github.com/D-Programming-Language/dmd/pull/341

However, the right hand side must still be a tuple.


More information about the Digitalmars-d-learn mailing list