Results 1 to 27 of 27

Thread: [RESOLVED] What is wrong with GoTo

Threaded View

  1. #25
    Fanatic Member
    Join Date
    Jan 2006
    Posts
    710

    Re: [RESOLVED] What is wrong with GoTo

    It's all a matter of degree - GoTo is at one extreme, but note that there are many "slightly sanitized goto's":
    Continue For
    Continue Do
    Continue While
    Exit For
    Exit Do
    Exit While
    Exit Select
    Return / Exit Sub / Exit Function

    Someone expressed surprise at goto being in code generated by reflector for C#, but 'goto' is valid (although not recommended) C# syntax. Note that most languages have 'goto' - the only popular programming language that omits it is Java (it just has the sanitized versions: continue, break, and return).
    Last edited by David Anton; Sep 29th, 2009 at 10:10 AM.
    David Anton
    Convert between VB, C#, C++, & Java
    www.tangiblesoftwaresolutions.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width