Code: Select all
FUNCTION Start( ) AS VOID
? Test( 2 )
RETURN
FUNCTION Test( n )
RETURN n + 12
The code compiles without warnings and runs as expected
2. now add /Fox2+
the compiler throws the error XS0103: The name 'Test' does not exist in the current context
3. now add /undeclared+
the compiler throws the warning XS9073: Variable 'Test' has not been declared. Assuming this is a FIELD
or a MEMVAR.
The code runs as expected
Are these compiler switch dependencies by design ?
regards
Karl-Heinz