Quoted from KL
PS. I regret that I cannot react to each contribution. In almost all cases my knowledge about compiler details is insufficient to comment.
Klaus,
What you are asking is not simple. The contributions thus far make that quite clear. I think it's reasonable for Paul (and people who are trying to contribute helpfully) to expect that your knowledge about compiler details is at least sufficient for you to answer relevant questions that are thrown back to you.
It is my impression that your requests in the forum typically relate to what in English is referred to as 'dotting the i's and crossing the t's', and are precise to the point of pedantry. In my book, at any rate, this is a compliment not a criticism, in the context of programming. For some reason, in this thread, which relates to a potentially very big issue, you are being uncharacteristically and unhelpfully vague.
I asked you:
'can you please clarify your meaning of the term undefined, and whether you are instructing FTN95, one way or another, to check for undefined variables'
It seems reasonable to me that you should be both willing and able to answer. In the context of your question, these are not 'details' - they are fundamental issues. Vaguely saying that you get nervous when you see a message like 'undefined variable' is not satisfactory! If you can't post code that illustrates the problem, and you can't at least be precise about an error message - quote the wording, show a screenshot, *something *tangible - then you have not provided anything that anyone can usefully respond to. Which is unfortunate, because if I have understood your original code-related worry correctly, then it raises an issue that is of concern to all FTN95 users.
In my understanding, there is no question about one thing that should *not *happen to variables that are defined in modules USEd by a main program - they should never become undefined as long as the program is executing. Asking whether the standard allows a variable in a module to become undefined if that module is *not *used by the main program clouds the issue.
So ... I'll have one more go at obtaining a little sorely-needed precision, and I'll stop wasting my time if it is not forthcoming. Please allow me to test my understanding of your original *code-related *worry:
You are saying that you have, in the past, observed the following ... a variable call it X (that is defined in a module call it M, that is USEd by a main program call it P) whose value has become undefined when control has passed from M to P or to some other module N. Is this correct?
Your basis for saying this is:
- that you received a run-time error message when you tried to compute with the value of X
- that you noticed in the variables window of SDBG a line that said 'X= UNDEFINED'
- that you noticed that the value of X changed (not under program control) after control passed from M
- something else
Hopefully,
Andy