> -----Original Message----- > From: Bob Ammerman [SMTP:RAMMERMAN@PRODIGY.NET] > Sent: Tuesday, September 12, 2000 9:31 PM > To: PICLIST@MITVMA.MIT.EDU > Subject: Re: [EE]:GOTO > > All ANSI 'C' compilers must allow gotos within a function, even _into_ > such > structures as while and for loops and switch statements. > > No 'C' compiler should allow gotos from one function to another. I'd love > to > here the story of any which does. > > Bob Ammerman > RAm Systems > (contract development of high performance, high function, low-level > software) > Not exactly a "goto" but SETJMP and LONGJMP allow branching between arbitrary points within different functions. I've only ever seen this used on UNIX, so I guess it's not an ANSI C thing? Mike -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu