Re: Declaring a Function Before it is used
- Posted by Rolf =3D?iso-8859-1?Q?Schr=3DF6der?=3D <rolf at rschr.de> Oct 31, 2003
- 419 views
Mike Nelson wrote: > ...=20 > In Eu, I must code this as >=20 > procedure bar() > -- do highly technical stuff > end procedure >=20 > global procedure foo() > -- do stuff > bar() > -- do more stuff > end procedure >=20 > Admittedly on reading foo, I have already read bar and "know what it does= ". > On the other hand, as likely as not I can't really understand what bar do= es > until I see it in its context in foo. If forward referencing were allowe= d, > I would put the general routine foo first and the implementation routine > bar() after it. > ... Mike, would it be possible to write your example code like this: global procedure foo() -- do stuff bar() -- do more stuff end procedure So, you have not (or would not) read bar() in advance of foo(). Have a nice day, Rolf=20 | Earth |-------------------------------| | Solar System | Earth Phone : +49-40-724-4650 | | Milky Way | National Fax: 0721-151-577722 | | Local Group | mailto:Rolf at RSchr.de | | Known Universe | http://www.rschr.de |