Re: Variable declarations

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

Derek Parnell wrote:
> Yes, variables inside routines must be declared prior to the first 
> executable statement in that routine. It is documented under the 
> heading 'scope'...
> 
> "Variable declarations inside a subroutine must all appear 
> at the beginning, before the executable statements of the subroutine."
> 
> -- 
> Derek Parnell
> Melbourne, Australia

Ah, thanks, my bad.  I saw at the beginning of the scope section the 
statement that all variables must be declared, but stopped reading the 
section when it started in on naming conflicts since right now my
programs are simple enough that naming conflicts are not a problem and
I try to keep to local scope ( if that's the right EU terminology ) 
which greatly reduces naming conflicts.

Thanks also for the quick response!  That will come in handy as I try
and wrap my mind around EU.

Jim Hendricks
President
Biz Computing, Inc.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu