[Mono-dev] [PATCH] Use recursive AscW in VB runtime (2)
rafim at mainsoft.com
Tue Sep 12 05:37:53 EDT 2006
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)
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)
/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
Please review and approve the patch.
More information about the Mono-devel-list