https://bugzilla.novell.com/show_bug.cgi?id=392464
User [EMAIL PROTECTED] added comment https://bugzilla.novell.com/show_bug.cgi?id=392464#c2 Andy Hume <[EMAIL PROTECTED]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[EMAIL PROTECTED] --- Comment #2 from Andy Hume <[EMAIL PROTECTED]> 2008-05-22 09:18:40 MST --- Yikes, VB allows that? It's of course equivalent to the direct assignment: Dim s As String = "test" There's (obviously) no constructor on String that takes a String, so what is VB doing here? I can't see anything in the VBLS80 spec that covers this on my quick re-reading. Wierd! What MSFT vbc generates is funky. A conversion first to an array of char... [[ IL_0000: ldstr "test" IL_0005: call char[] [Microsoft.VisualBasic]Microsoft.VisualBasic.CompilerServices.Conversions::ToCharArrayRankOne(string) IL_000a: newobj instance void [mscorlib]System.String::.ctor(char[]) IL_000f: stloc.0 IL_0010: ret ]] -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
