On Fri, Oct 16, 2020 at 08:04:07PM +0000, Imperatorn via Digitalmars-d-learn 
wrote:
[...]
> I think it might be just because you havent defined the function yet
> at that point.

That's not correct; the following works:

        module mymodule;

        void func() {
                forwardfunc();
        }

        void forwardfunc() {
        }

However, this only applies in module scope. If they were declared inside
a function body, forwardfunc must be declared before func.


T

-- 
It is impossible to make anything foolproof because fools are so ingenious. -- 
Sammy

Reply via email to