Let's discuss where VB is going and interact with some of those that are making it happen!
re @paul1956 @CyrusNajmabadi
I think it was proposed to replace the For loop to handle the edge cases. While i.Inbetween(Byte.Min, Byte.Max, Step:=2) But maybe Adam had something else in mind.
I am just thinking about the clauses used in Case Statements
, to see if I can extract the out in a general pattern matching syntax.
Select Case operand
Case min To max Step stepping
Case Else
End Select
So thinking about a smarter lowering, for the step case.
VB gives non-sense errors regarding ArressOf. See this sample:
class Designer
sub Designer_Loaded()
End Sub
Shared Sub Foo()
AddHandler CurrentPage.Loaded, AddressOf Designer_Loaded ' Error 1
AddHandler CurrentPage.Loaded, AddressOf Designer.Designer_Loaded ' Error 2
AddHandler CurrentPage.Loaded, AddressOf CurrentPage.Designer_Loaded ' OK
End Sub
End class
Error 1:
annot refer to an instance member of a class from within a shared method or shared member initializer without an explicit instance of the class.
Error 2:
Reference to a non-shared member requires an object reference.