Hmmm.... I'm still not entirely convinced, but they do make good cases for GOTO. I suppose I need to look at the IL from a VB program with Exit Do nested inside a Select Case statement inside a Do loop. Perhaps it just inserts goto statements itself.
On 6/20/06, Roy Green <[EMAIL PROTECTED]> wrote:
Michael Covington had a great article about restoring the reputation of the goto statement, but unfortunately I can't find it, as his other hobby is astrophotography, and there is apparently a species of computerized telescope called GoTo.. and a Google search is clogged with such results. Ah, here it is: http://www.covingtoninnovations.com/michael/blog/0509/index.html#050918 and he points to Steve McConnell's page at http://www.stevemcconnell.com/ccgoto.htm On 6/20/06, Mike Andrews <[EMAIL PROTECTED]> wrote: > No, I've not considered it. I'd rather set a flag variable to make it work > rather than do anything with goto. > I just believe it's bad programming practice to use goto's. > > Thanks, > Mike > > > On 6/20/06, Toulakis, Dimitrios (RESC) < [EMAIL PROTECTED]> > wrote: > > > > Hi Mike, > > > > Have you considered using the goto statement? > > > > Cheers,Dimitrios > > > > -----Original Message----- > > From: Discussion of advanced .NET topics. > > [mailto:[EMAIL PROTECTED] On Behalf Of Mike Andrews > > Sent: Tuesday, June 20, 2006 3:49 PM > > To: [email protected] > > Subject: [ADVANCED-DOTNET] Exit Do... > > > > Guys... > > > > I know that break; is essentially the same as a VB Exit Do. > > > > However... > > > > If I'm inside a switch statement, is it possible to exit the Do loop? > > > > Thanks, > > Mike > > > > =================================== > > This list is hosted by DevelopMentor(r) http://www.develop.com > > > > View archives and manage your subscription(s) at > > http://discuss.develop.com > > > > =================================== > > This list is hosted by DevelopMentor(r) http://www.develop.com > > > > View archives and manage your subscription(s) at > > http://discuss.develop.com > > > > =================================== > This list is hosted by DevelopMentor(r) http://www.develop.com > > View archives and manage your subscription(s) at http://discuss.develop.com > =================================== This list is hosted by DevelopMentor(r) http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com
=================================== This list is hosted by DevelopMentorĀ® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com
