Workaround for foreward declaration ?

Peter Sommerfeld noreply at rubrica.at
Sun Mar 3 09:20:10 PST 2013


Jonathan M Davis wrote:
> AFAIK, you have to put them outside for this. The order of both function  
> calls and import declarations matters inside of a function even though  
> it doesn't matter outside. In general, nested functions are more limited 
> (e.g. if   they're templated, you can't instantiate them with different
> arguments - you  only get one instantation).

Thanks David! Should be mentioned somewhere though. Well, probably is,
somewhere ...

Peter


More information about the Digitalmars-d-learn mailing list