Idea: Classifications

BCS nothing at pathlink.com
Fri Jan 5 13:38:29 PST 2007


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.



More information about the Digitalmars-d mailing list