Hello, everyone,
is there a way to extract variables that exist multiple times within a routine?
For example, because they are stored as global variables but were passed as arguments as well?
Welcome to our forums
Hello, everyone,
is there a way to extract variables that exist multiple times within a routine?
For example, because they are stored as global variables but were passed as arguments as well?
I don't understand the question. Are you looking for a search feature in the Plato source code editor or some feature in the FTN95 compiler?
A compiler feature. Some sort of notification that there are multiple instances of the same variable.
If you keep your subprograms short, say a couple of hundred lines max, you ought to be able to find particular variables scanning by eye alone. Most editors also have a 'find' and 'find next' - Plato does, but the Edit menu only appears when you have a source code file open. Plato doesn't provide line numbers in the source code window (I think) but the current line number is shown in the status line, and you can note this if you want.
Right now I'm using the debugger, because in the 'Variables' window it's easier to see, than by looking over the code itself.
/xref on the FTN95 command line might help.
Plato does have line numbers available in the left margin.