> No 'C' compiler should allow gotos from one function to another. I'd love to > here the story of any which does. I don't see how that's possible in C since all functions are separate. Pascal, however, has the notion of subordinate routines that only exist within the scope of a single parent routine. I know of at least one Pascal compiler that allows GOTOs back to a parent routine. I was always a bit weary of it, and wondered if the compiler would properly unwind the stack if the subordinate routine had called itself recursively, exactly what the state of returned arguments were, etc. I wrote a translator from Pascal to C once, and finally decided to make such GOTOs illegal. (Imagine trying to implement such a feature using only standard C without benefit of stack diddling.) I kept nested routines because I felt this was a useful construct although getting all the details right ended up taking quite a bit of code. If I remember right, it does multiple passes looking for references to variables of any of the parent routines. It keeps doing this until nothing changes. Rather a pain to implement but pretty cool once it all worked. ***************************************************************** Olin Lathrop, embedded systems consultant in Devens Massachusetts (978) 772-3129, olin@cognivis.com, http://www.cognivis.com -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu