Re: buggy 4.0 program
- Posted by kinz Dec 16, 2008
- 1526 views
I'm not sure if there is a difference between undeclared variables and unresolved forward references (that and conflicting references - variable declared twice - are the only reference errors that I know of).
The difference seems to be very clear, if EOF is reached.
Which is?
As far as I know, the variables can not be backward declared, so the difference is clear, there is no any need to look for forward referenced variables. But procedures and functions need the parsing to the end of file, they may be forward referenced.
I think now that all forward referenced routines may have the "FR:" prefix and separate specific namespace, then parsing will be much more simple and program will have much more clear text.
Regards,
Igor Kachan
kinz@peterlink.ru