Re: Variable declarations
- Posted by CoJaBo <cojabo at suscom.net> Sep 18, 2004
- 418 views
Jim Hendricks wrote: > > 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 LOL :) I did the exact same thing when I first started! > 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. >