A VB Language Bug or Feature?
Following on from post http://weblogs.asp.net/dneimke/archive/2004/04/22/117856.aspx ...
Another issue with this "feature" is that I'd almost class it as a bug in VB.NET that they don't handle the Null Terminator for you. For example:
Dim a As String = "Foo" Dim b As String = CHR(0) Dim c As String = "Bar" MsgBox( a & b & c ) ' <== displays "Foo"
Whereas...
Dim a As String = "Foo" Dim b As String = CHR(0) Dim c As String = "Bar" Console.WriteLine( a & b & c ) ' <== displays "FooBar"
I'd call that inconsistent with my expectation as a language "user". So what would you call this? A VB Language Bug or Feature?