Any of you guys ever hear of a COMEFROM? It's like the opposite of a GOTO! At 10:30 AM 12/24/98 +1100, you wrote: >Paul B. Webster VK2BZC wrote: >> James Cameron wrote: >> > But I think it is not as evil as setjmp() and longjmp(). >> Is that a sort of takeajmp() ? > >setjmp() marks a point in your code. > >longjmp() can be used anywhere in the code to unwind the stack, all >stack allocated variables, and resume execution after the setjmp(). > >It is sort of a steroidal or global goto; can be used in any part of a >program, not just within a function. > >I imagine it would be difficult to implement on PIC ... requires ability >to unwind (pop) the stack. Means the compiler would have had to >implement the stack as a set of file registers. > >-- >James Cameron (cameron@stl.dec.com) > >OpenVMS, Linux, Firewalls, Software Engineering, CGI, HTTP, X, C, FORTH, >COBOL, BASIC, DCL, csh, bash, ksh, sh, Electronics, Microcontrollers, >Disability Engineering, Netrek, Bicycles, Pedant, Farming, Home Control, >Remote Area Power, Greek Scholar, Tenor Vocalist, Church Sound, Husband. > >"Specialisation is for insects." -- Robert Heinlein. > ================================================================== Andy Kunz - Montana Design - http://www.users.fast.net/~montana ==================================================================