Re: version 4.xx question
- Posted by mattlewis (admin) Oct 07, 2013
- 1380 views
What is the purpose of the file fwdref.e
Does it add some special feature to eu4 ?
There is no mention of forward references in the manual.
fwdref.e is a part of the euphoria written front end. It tracks and resolved forward references of symbols in parsed euphoria code. In the discussion of scopes, it says:
4.2.3.1 Why scopes, and what are they?
...
It is possible to use a user-defined identifier before it has been declared, provided that it will be declared at some point later in the program.
One of the biggest benefits of this is that you can put all of your includes at the top of a file, and two files can reference each others symbols without having to resort to routine_ids or worrying about which file includes the other where. Of course, this also means that you don't need to reorder your functions in a file in order for other parts of that file to access them, so you can organize (or not!) the order of routines however you like.
Matt