Re: buggy 4.0 program
- Posted by DerekParnell (admin) Dec 16, 2008
- 1529 views
[quote DerekParnell]
kinz said...
DerekParnell said...
kinz said...
As far as I know, the variables can not be backward declared
You are wrong. Variables can be referenced before they are declared.
Please give me the working example in 4.0.
integer a = 1 ? a
Just kidding ..... try this instead ...
-- file: foo.e -- public integer a = 1 ----
-- file: text.ex -- procedure xyz() integer a = 1 end procedure xyz() include foo.e
Currently, a forward declared variable must be declared in another file and can only be referenced inside a routine. These restriction may change.