Function with try/catch and no return statement

Stewart Gordon smjg_1998 at yahoo.com
Sun Feb 7 07:00:33 PST 2010


retard wrote:
<snip>
> The difference is, in this case the generic foo doesn't need to be 
> analyzed before it has been instantiated. There is no foo(string code) 
> instances in the final executable, only the concrete instantiations. The 
> analysis could be done when foo!(something) is encountered in the code.

It already is.  It's part of how templates work: templates aren't 
semantically analysed, only instances of them are.

The problem lies in how the requirement for return statements is 
specified, as I've explained in my reply to Michel.

Stewart.



More information about the Digitalmars-d mailing list