[Issue 538] Can't return an expression tuple from a function

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Nov 18 07:13:39 PST 2006


http://d.puremagic.com/issues/show_bug.cgi?id=538





------- Comment #1 from brunodomedeiros+bugz at gmail.com  2006-11-18 09:13 -------
Not a bug. "A Tuple is not a type" (from
http://www.digitalmars.com/d/template.html), so (unless stated otherwise) it
cannot be used as the return value of a function. And it is not stated
otherwise, the only special uses for tuples are "A Tuple can be used as an
argument list to instantiate another template, or as the list of parameters for
a function.".


-- 




More information about the Digitalmars-d-bugs mailing list