equivalent of fortran goto
g0810
I am fairly new to igor. I am trying to write a fortran code as an igor procedure. My fortran code has several goto statements. How does igor handle such statements? Any help will be appreciated.
Thanks!
That said, you should wind up with cleaner Igor code. "goto" has long been a notorious source of hard to understand "spaghetti code."
August 11, 2011 at 10:47 am - Permalink
...
goto foo
...
bla do something starting here
...
foo do something else starting here
...
... becomes ...
return 0
DoFoo()
return 0
...
end
Function Bla()
do whatever bla does here
return 0
end
Function Foo()
...
end
Then you can streamline the main code with all of the function calls.
--
J. J. Weimer
Chemistry / Chemical & Materials Engineering, UAHuntsville
August 11, 2011 at 01:13 pm - Permalink
August 15, 2011 at 10:41 am - Permalink