Forward reference to included function
- Posted by ArthurCrump Jan 13, 2014
- 1729 views
The manual for Euphoria 4.0.5 states that:
The scope of all procedures, functions and types, which do not have a scope modifier, starts at the beginning of the source file and ends at the end of the source file in which they are declared. In other words, these can be accessed by any code in the same file.However, the following code works even though the function called is not in the same file.
any_key("\nChoose a key and press it\n") include std/console.e
Are forward references intended to find routines in include files or was it intended that the routine should be in the same file as stated in the 4.0.5 documentation?
Arthur