View mode: basic / threaded / horizontal-split · Log in · Help
January 10, 2011
"Forward declaration" error with auto
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?
January 10, 2011
Re: "Forward declaration" error with auto
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?

Nope. Likely bug #2810[1].

[1]: http://d.puremagic.com/issues/show_bug.cgi?id=2810

-- 
Simen
January 10, 2011
Re: "Forward declaration" error with auto
I've repoted this a few days ago:
http://d.puremagic.com/issues/show_bug.cgi?id=5433
Top | Discussion index | About this forum | D home