> 10 goto 100
> ...
> 20 goto 100
> ...
> 100 comefrom 10 20
> ...
> 30 goto 100 !this is an error the compiler would have to flag
Presumably, continuing the example above:
100 come from 40 !this is an error the compiler would have to flag
Perhaps more in line with the Fortran-90 label style:
foo: goto 100
bar: goto 100
...
100 come from foo, bar
The advantage of this is that foo, bar etc can be cleverly chosen names
(i.e. with some reference to what the code is actually doing, unique
etc); numbers are difficult to search for since these might occur
elsewhere in the code (including spaces in the search string assumes
that one knows how many there are etc). Also, these could be added to
old code, whereas adding numeric labels to the goto statements would
mean making sure these have not already been used elsewhere etc.
--
Phillip Helbig Email .............. [log in to unmask]
Kapteyn Instituut Email ................. [log in to unmask]
Rijksuniversiteit Groningen Tel. ................... +31 50 363 6647
Postbus 800 Fax .................... +31 50 363 6100
NL-9700 AV Groningen Web ... http://www.astro.rug.nl/~helbig/
My opinions are not necessarily those of my employer.
<A HREF=" http://gladia.astro.rug.nl:8000/helbig/hire/hire.html ">HIRE ME!</A>
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|