[Mono-dev] [PATCH] Use recursive AscW in VB runtime (2)
Rafael Mizrahi
rafim at mainsoft.com
Tue Sep 12 05:37:53 EDT 2006
Kornél,
I don't understand your patch, you are calling AscW within AscW function.
Isn't it will generate a StackOverflow exception ?
Public Function AscW(ByVal c As Char) As Integer
- Return Convert.ToInt32(c)
+ ' Compiled as if it were "Return CInt(c)" when /novbruntimeref is used
+ Return AscW(c)
End Function
Rafael
-----Original Message-----
From: mono-devel-list-bounces at lists.ximian.com [mailto:mono-devel-list-bounces at lists.ximian.com] On Behalf Of Kornél Pál
Sent: Tuesday, September 12, 2006 12:17
To: mono-devel-list at lists.ximian.com
Subject: [Mono-dev] [PATCH] Use recursive AscW in VB runtime (2)
Hi,
/novbruntimeref treats AscW specially as it is compiled as if it were CInt
(no AscW method is called).
Now vbnc has support for this as well and a dedicated test case ensures this
behavior.
Please review and approve the patch.
Kornél
More information about the Mono-devel-list
mailing list