News for hackers. Stuff that matters.
Re:Visual Basic Turns 25 by cm2187 on Monday May 23, 2016 @04:20PM (#11756609)
I have some sympathy for Microsoft on this. Some of the changes could have been backward compatible (like making "set" optional). But some breaking changes had to be made. Like making all function parameters byval by default. Having everything byref by default in VB6 was just a bad initial design.
Re:Visual Basic Turns 25 by barking on Monday May 23, 2016 @04:38PM (#11756757)
Not sure I understand your second example. The upgrade code to VB7 could just have inserted a ByRef for every parameter lacking both a Byval and a Byref?
Re:Visual Basic Turns 25 by cm2187 on Monday May 23, 2016 @04:45PM (#11756807)
Yep, sorry. But I guess you are then changing people's code. Although in this case it is a relatively safe change.