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 -- http://home.pages.de/~Peter.Gerwinski/ - G-N-U GmbH: http://www.g-n-u.de Maintainer GNU Pascal - http://home.pages.de/~GNU-Pascal/ - gpc-19990118 GnuPG key fingerprint: 9E7C 0FC4 8A62 5536 1730 A932 9834 65DB 2143 9422 keys: ftp://ftp.gerwinski.de/pub/keys/ - AntiSpam: http://spam.abuse.net