|
-
Re: And Then and Or Else
Hi Colin --
>>>>The problem is that you're repeating the same code twice;
>>
>>Seems to me that that was why GoSub was created.
>
>No...that's why subroutines were created. GoSubs are ugly, and less and
>less programmers know how to use them elegantly (if you can call it that).
They _were_ very useful for isolating multiple-use code within a procedure, though.
The main advantage being no need to stuff the stack with a boatload of in-scope
variables. IOW, they were most definitely an optimization over separate subroutines
in cases where the code in question was only used from a single location.
>That, and with MS' optimizations to VB, since VB4 (I believe), using a GoSub
>has been slower than using a new subroutine anyway. So you don't even save
>anything.
You're telling the guy who reported that to MS during the VB4 beta. ;-)
Later... Karl
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks