Re: buggy 4.0 program

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

[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.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu