Re: Forward referencing
Hi
I've just a forum search for 'forward reference' Sorry, looks like
a got hornets nest, and may be too much trouble to re write the interpreter.
However, I'm still interested as to why allowing forward refs would
introduce bugs.
Is this not a simplistic view of how an eu progrom is interpreted.
1. stretch out all the files (includes etc) into one long program
2. build a table with all the variables (globals and locals) and functions
and procedures.
3. run the program with the addresses of the functions referenced
from the name table
if so, why not allow references to funcs and procedures that occur
later in the program list?
Chris
|
Not Categorized, Please Help
|
|