October 08, 2013 Re: Why I loved D :) | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Meta | On Tue, 08 Oct 2013 01:08:42 +0200
"Meta" <jared771@gmail.com> wrote:
>
> We are so close to a destructuring syntax it hurts. Is there any way to insert a, b and c into the current scope automagically?
with()
<g>
| |||
October 08, 2013 Re: Why I loved D :) | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Brad Anderson | On Monday, 7 October 2013 at 23:34:35 UTC, Brad Anderson wrote:
> Nice.
>
> C++'s Boost uses the tuple library to accomplish this:
>
> int i; char c; double d;
> tie(i, c, d) = make_tuple(1, 'a', 5.5);
>
It is actually a standard now ;)
| |||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply