Re: Forward referencing functions in D

2020-10-16 Thread wilcro via Digitalmars-d-learn
On Friday, 16 October 2020 at 19:55:53 UTC, wilcro wrote: The web page "Programming in D for C Programmers" (https://dlang.org/articles/ctod.html#forwardfunc) states that forward declarations are neither required nor permitted, and that the following construct is allowable: void myfunc() {

Re: Forward referencing functions in D

2020-10-16 Thread wilcro via Digitalmars-d-learn
On Friday, 16 October 2020 at 19:55:53 UTC, wilcro wrote: The web page "Programming in D for C Programmers" (https://dlang.org/articles/ctod.html#forwardfunc) states that forward declarations are neither required nor permitted, and that the following construct is allowable: void myfunc() {

Forward referencing functions in D

2020-10-16 Thread wilcro via Digitalmars-d-learn
The web page "Programming in D for C Programmers" (https://dlang.org/articles/ctod.html#forwardfunc) states that forward declarations are neither required nor permitted, and that the following construct is allowable: void myfunc() { forwardfunc(); } void forwardfunc() { ... //do