Compile time variadic functions

Walter Bright Walter_member at pathlink.com
Tue Mar 14 16:25:24 PST 2006


In article <dv4j1r$eil$1 at digitaldaemon.com>, Oskar Linde says...
>*) Another thing that would be nice is an auto (type inferred) return 
>type for functions:
>
>auto func(int x) { return x+1; }

That would be cool, but it has some severe chicken-and-egg problems. The problem
is that the function body must be fully semantically analyzed before the return
type can be deduced. Think of what happens when many functions call each other!





More information about the Digitalmars-d mailing list