Forward References
Posted: Mon Mar 04, 2019 9:14 pm
I need to reference procedures that are defined further down in the program text. It's not possible to re-arrange the code in a way that this can be avoided (use case: a state machine, where each state is represented by a procedure, and certain state changes will require forward refs). (Astrobe) Oberon does not seem have a language facility for forward refs -- I scanned the Oberon docs and books for any hints or examples, to no avail, but then again, I might have missed them.
Of course, the problem can be solved using procedure variables.
Did I miss something, or are procedure variables the only solution?
Of course, the problem can be solved using procedure variables.
Did I miss something, or are procedure variables the only solution?