Tom Schneider wrote:
Peter:
(Sorry about the duplicate message to your personal address, please ignore it.)
No problem. :-)
Oh - sorry I didn't catch that. Are these messages archived somewhere?
Using the search function, I could not even locate any entries with the word 'goto'!
The `search' function is broken. :-( Sorry for this.)
This strikes me as related to another problem. I was forced by the Sun Pascal compiler no longer to use 'main' as a procedure name because the C compiler objected. However, that is a violation of the scope principle.
(* Yes, and GPC does not have this problem. :*)
It seems to me that a compiler writer could avoid all these issues by encasing the entire program under one more layer of scope. Then 'main' or any other non-keyword could be used without conflict with the C compiler.
In the same way, encasing the program as a 'sub-function' might mean that your difficulty with would go away.
Yes, but doing so would create other difficulties with e.g. pointers to procedures and global variables residing on the stack rather than the heap etc.
Peter