www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - "Forward declaration" error with auto

reply Sean Eskapp <eatingstaples gmail.com> writes:
Referring to functions declared later inside a module with return type auto
causes an error, but not when the return type is explicitly declared.

The same goes for calling functions in other modules with return type auto. Is
this supposed to happen?
Jan 10 2011
parent reply "Simen kjaeraas" <simen.kjaras gmail.com> writes:
Sean Eskapp <eatingstaples gmail.com> wrote:

 Referring to functions declared later inside a module with return type  
 auto
 causes an error, but not when the return type is explicitly declared.

 The same goes for calling functions in other modules with return type  
 auto. Is
 this supposed to happen?
[1]: http://d.puremagic.com/issues/show_bug.cgi?id=2810 -- Simen
Jan 10 2011
parent Andrej Mitrovic <andrej.mitrovich gmail.com> writes:
I've repoted this a few days ago:
http://d.puremagic.com/issues/show_bug.cgi?id=5433
Jan 10 2011