I dun a DIP, possibly the best DIP ever

Timon Gehr timon.gehr at gmx.ch
Sat May 9 16:06:38 UTC 2020


On 09.05.20 02:21, Manu wrote:
> On Sat, May 9, 2020 at 7:20 AM Adam D. Ruppe via Digitalmars-d 
> <digitalmars-d at puremagic.com <mailto:digitalmars-d at puremagic.com>> wrote:
> 
>     On Friday, 8 May 2020 at 20:53:39 UTC, Q. Schroll wrote:
>      >     alias Tup = Tuple!(int, long);
> 
>     This is just a struct, the ... shouldn't do anything to it
>     (probably should be a syntax error).
> 
>     The ... thing is all about compiler tuples which are
>     unfortunately named the same but totally separate to library
>     tuples.
> 
> 
> ^^^
> std.typecons.Tuple is a struct. It's not a tuple.

It implements a tuple. It's just not a weird built-in compiler "tuple".


More information about the Digitalmars-d mailing list