GOTO will never die
Yesterday i hade a discussion in the forums of the german developer portal www.devtrain.de about language diffrences between C# and VB.NET.
Yes- the same old we hade 100 times bevor. BUT i said, "after the GOTO was removed in vb.net...". The other part told me that he believe GOTO is still in Visual Studio 2003. Bohh - i was surprised.
Following the Hannes pattern, believe nothing except you checked it yourself, i tryed to type GOTO. And what should i say, its true, GOTO is still alive.
goto ende
ende:
Wow!
The next step was to try the same ( with a small hope that it will not work) in Visual Studio 2005.
And the result was quite fancy. Not only GOTO worked well, also intellisense does a great job.
Then i tryed my own for-next loop ;-)
Dim i As Double
anfang:
i = i + 1
If i < 200000000 Then
GoTo anfang
End If
Yes VB.NET is OOP!