On 27.09.2018 01:05, Neia Neutuladh wrote:

The standard ways of dealing with this:

* Reorder the declarations.
* Make the functions non-nested.
* Get rid of mutual recursion.
* Use a delegate.
* Do a method-to-method-object refactoring.

* turn the function with the forward reference into a template

void main() {
    void fun()() {
        fun2();
    }
    void fun2() {}
    fun(); // ok
}

Reply via email to