Forward reference to included function

new topic     » topic index » view thread      » older message » newer message

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

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu