From: Damian Yerrick Newsgroups: comp.os.msdos.djgpp Subject: Re: Is it possible to use Labels ???? Organization: Pin Eight Software http://pineight.8m.com/ Message-ID: References: <8dvvmu$49g$1 AT news00 DOT btx DOT dtag DOT de> X-Newsreader: Forte Agent 1.7/32.534 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 27 X-Trace: /K49oFED/EO5E/DrtcklsAFIj75MwhwEKkYMG9HEvhUAtheQdf3+Pa+lnchjEot4Us9P9giKpC3p!BPuvC4Is4C90qTyPfeP77Ilcq7Da/EfYV3uGYHB1cOwWuxPn+9w1i6eEP5Yed1l7AxOWtH9PVmsq!Y6nCVU0= X-Complaints-To: abuse AT gte DOT net X-Abuse-Info: Please be sure to forward a copy of ALL headers X-Abuse-Info: Otherwise we will be unable to process your complaint properly NNTP-Posting-Date: Mon, 24 Apr 2000 03:01:28 GMT Distribution: world Date: Mon, 24 Apr 2000 03:01:28 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com On Mon, 24 Apr 2000 01:02:01 +0200, "Torsten Giebl" wrote: >I have written some smaller programs in Free Pascal and there you can use >things like this: > >Test: >.. >.. >.. >GOTO Test > >Can i also use labels in DJGPP ??? If yes, how ??? In general labels are bad. Normally you want to use while(), for(), if(), or select() logic. (Don't) Use the goto statement to jump to a label in the same function. It works, but it encourages spaghetti code. -- Damian Yerrick "I refuse to listen to those who refuse to listen to reason." See the whole sig: http://www.rose-hulman.edu/~yerricde/sig.html This is McAfee VirusScan. Add these two lines to your signature to prevent the spread of signature viruses. http://www.mcafee.com/