[Mono-bugs] [Bug 392464] Delegate problems 3 when creating New String
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Thu May 22 11:18:41 EDT 2008
https://bugzilla.novell.com/show_bug.cgi?id=392464
User andyhume32 at yahoo.co.uk added comment
https://bugzilla.novell.com/show_bug.cgi?id=392464#c2
Andy Hume <andyhume32 at yahoo.co.uk> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |andyhume32 at yahoo.co.uk
--- Comment #2 from Andy Hume <andyhume32 at yahoo.co.uk> 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.
More information about the mono-bugs
mailing list