April 11, 2006
VB, the magic (), and Bill Mccarthy has forgotten more than I'll ever know.
Did you know that if a funciton expects an argument ByRef, you can still pass it ByVal from VB?
Foo( (S) )
Because of the extra set of (), S will be passed ByVal, even if Foo is declared as
Sub Foo (ByRef S as String)
Who would have known? Well, Bill McCarthy. Bill goes on to point out how this could be used in conjunction with LINQ. When LINQ does ship, and you want to bone up on it, or do other deep language level thinking, I highly recommend Bills blog. Be warned though. If you're like me, you'll often stagger from your computer, uttering, "Mommy, my head hurts."
Posted on April 11, 2006 at 11:17 PM | Permalink
Cool. That just makes me dislike VB even more!
Posted by: ac | Apr 24, 2006 2:58:45 PM
The comments to this entry are closed.