Comma expressions must die [Was: Reddit: why aren't people using D?]

Adam D. Ruppe destructionator at gmail.com
Sat Jul 25 12:49:53 PDT 2009


On Sat, Jul 25, 2009 at 01:20:33PM -0600, Rainer Deyke wrote:
> >From the Boost.Tuple documentation:
> 
>   int i; char c; double d;
>   tie(i, c, d) = make_tuple(1,'a', 5.5);
>   std::cout << i << " " <<  c << " " << d;
> 
> So C++ tuples *do* support multiple assignment, even without language
> support.  Still not as nice as the Python syntax, though.

I think I like that.


-- 
Adam D. Ruppe
http://arsdnet.net



More information about the Digitalmars-d mailing list