PC Review


Reply
Thread Tools Rate Thread

Compiler support for "Exit For"

 
 
Steve Long
Guest
Posts: n/a
 
      25th Oct 2004
Hello,
does anybody know if the built in support for the "Exit For" statement is
just a left over from earier versions of VB and therefore inefficient or if
it's truely a VB.NET language feature?
The reason I ask is because even though the "On Error Goto" statement is
still available in .NET, if you use it, it wraps a Try/Catch block around
each line of code in that routine from what I understand. If "Exit For" does
anything as inefficient as that, I certainly wouldn't want to use it.

Can someone in the know address this?

Thanks
Steve


 
Reply With Quote
 
 
 
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      25th Oct 2004
"Steve Long" <(E-Mail Removed)> schrieb:
> does anybody know if the built in support for the "Exit For" statement is
> just a left over from earier versions of VB and therefore inefficient or

if
> it's truely a VB.NET language feature?


It's truly a language feature and there are no reasons for removing it in a
future version. It just performs a jump.

> The reason I ask is because even though the "On Error Goto" statement is
> still available in .NET, if you use it, it wraps a Try/Catch block around
> each line of code in that routine from what I understand.


Unstructured error handling is a language feature too. It's part of the
language and it's sometimes a nice shortcut. You should not matter about
the IL that is generated by the compiler too much.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
renaming "Exit Access" to "Exit" ds Microsoft Access 0 5th Feb 2009 04:58 PM
renaming "Exit Access" command to "Exit" in Access 2007 dstork@gmail.com Microsoft Access 2 10th Mar 2008 08:16 PM
Launching of "Event Properties" Hyperlink , launches specified site within "Help and Support Center" frame, how do I change this? ltsnyder Windows XP Internet Explorer 0 16th Feb 2006 06:05 PM
Still unable to open "Search", "Help and Support" and "Run" programs. Horst J. Viergutz Windows XP Accessibility 1 27th Nov 2004 01:43 PM
Windows Messenger (4.7.2009) does not exit when I click "Exit" Paul-133 Windows XP Messenger 1 22nd Apr 2004 07:48 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:01 PM.