Proposal: Object/?? Destruction

jmh530 john.michael.hall at gmail.com
Mon Oct 9 15:42:18 UTC 2017


On Monday, 9 October 2017 at 15:22:35 UTC, Timon Gehr wrote:
>
> Singleton tuples might seem pointless, and some languages do 
> not support such single-element tuples, but as we want to 
> support slicing, they should probably exist. (Also, we might 
> want to create a tuple from an AliasSeq, which can be achieved 
> by dropping it into a single-element tuple and letting it 
> auto-expand.)
>

Singleton tuples would be necessary for any kind of recursion on 
tuples.

The way mir.functional.RefTuple works is similar to your AliasSeq 
tuple. This is because it uses anonymous names for the fields. 
std.typecons.Tuple assumes field name/Type pairs.


More information about the Digitalmars-d mailing list