Idea: Classifications

Chris Nicholson-Sauls ibisbasenji at gmail.com
Fri Jan 5 14:07:24 PST 2007


BCS wrote:
> Chris Nicholson-Sauls wrote:
>>
>> With the same rules as Tuples: either types or data, not both.
> 
> ?
> 
> Tuples can do mixed lists of whatever.
> 
> from: http://www.digitalmars.com/d/tuple.html
> 
> template Tuple(E...){ alias E Tuple; }
> [...]
> Tuple!(int, 8)    // create a tuple of a type and an expression
> 
> 
> The implied restriction would be good for classifications, but I didn't 
> think it apples to tuples.

My mistake then.  Actually that makes Tuples even more useful, so it makes sense.

-- Chris Nicholson-Sauls



More information about the Digitalmars-d mailing list