Pair literal for D language
Jacob Carlborg via Digitalmars-d
digitalmars-d at puremagic.com
Sat Jun 28 00:18:25 PDT 2014
On 2014-06-26 23:16, H. S. Teoh via Digitalmars-d wrote:
> Note that the word "tuple" in D is used to refer to two very different
> things. What you want is essentially an anonymous struct, and should be
> adequately covered by std.typecons.tuple.
I would like some form of anonymous struct, with some kind of pattern
matching on the fields [1].
[1] http://forum.dlang.org/thread/kfbnuc$1cro$1@digitalmars.com
--
/Jacob Carlborg
More information about the Digitalmars-d
mailing list