Author: kornelpal
Date: 2006-09-12 06:24:49 -0400 (Tue, 12 Sep 2006)
New Revision: 65291

Added:
   
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic/ChangeLog
Modified:
   
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic/Strings.vb
Log:
Strings.vb: Call AscW(Char) in AscW(Char) recursively that will result in 
returning the first parameter without any method being called.

Added: 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic/ChangeLog
===================================================================
--- 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic/ChangeLog
    2006-09-12 10:24:33 UTC (rev 65290)
+++ 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic/ChangeLog
    2006-09-12 10:24:49 UTC (rev 65291)
@@ -0,0 +1,4 @@
+2006-09-12  Kornél Pál  <[EMAIL PROTECTED]>
+
+       * Strings.vb: Call AscW(Char) in AscW(Char) recursively that will result
+         in returning the first parameter without any method being called.


Property changes on: 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic/ChangeLog
___________________________________________________________________
Name: svn:eol-style
   + native

Modified: 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic/Strings.vb
===================================================================
--- 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic/Strings.vb
   2006-09-12 10:24:33 UTC (rev 65290)
+++ 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic/Strings.vb
   2006-09-12 10:24:49 UTC (rev 65291)
@@ -82,7 +82,9 @@
         End Function
 
         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;
+            ' No AscW or other method is called.
+            Return AscW(c)
         End Function
 
         Public Function Asc(ByVal s As String) As Integer

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to