home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.pascal.borland      Borland Pascal was actually pretty neat      2,978 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 2,752 of 2,978   
   Wolf Behrenhoff to All   
   Re: Please help with Goto statement   
   09 Apr 09 12:20:42   
   
   cfce0bb3   
   From: NoSpamPleaseButThisIsValid3@gmx.net   
      
   Dos-Man 64 schrieb:   
   > Hello, I'm using some version of Turbo Pascal.  I'm creating an MS-   
   > DOS   
   > application.  It is using the windemo.pas source code as a base. I've   
   > altered it a bit to get it to do what I need it to do.  I'm trying to   
   > set up a goto statement, but I can't get it working.  The pseudocode   
   > I need is as follows   
      
   You don't need a goto statement for what you want to achieve. Only use   
   goto if there is no (easy or even not-so-easy) way to avoid it. There   
   may be cases where not using goto makes the code more complicated or   
   slower but these cases are very rare. So think twice if you really need   
   it. If you've decided that you really need it, use a label that speaks   
   for itself (i.e. don't use a plain number!) and document why you had to   
   use goto.   
      
   - Wolf   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca