[Mono-bugs] [Bug 59800][Nor] Changed - Some IntPtr and UIntPtr casts supported by csc are not supported by mcs

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Aug 23 10:04:10 EDT 2006


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by marek.safar at seznam.cz.

http://bugzilla.ximian.com/show_bug.cgi?id=59800

--- shadow/59800	2006-08-11 10:03:47.000000000 -0400
+++ shadow/59800.tmp.19086	2006-08-23 10:04:10.000000000 -0400
@@ -10,13 +10,12 @@
 Component: C#
 AssignedTo: miguel at ximian.com                            
 ReportedBy: lupus at ximian.com               
 QAContact: mono-bugs at ximian.com
 TargetMilestone: ---
 URL: 
-Cc: 
 Summary: Some IntPtr and UIntPtr casts supported by csc are not supported by mcs
 
 This test doesn't compile with mcs, but it should compile just fine.
 class T {
 	static void Main () {
 		ulong ul = 0;
@@ -141,6 +140,23 @@
 same on the stack and signed<->unsigned coversions exist for all 
 other integer types but I think we shouldn't implement that for 
 compatibility reasons.
 
 As a reference on how the missing conversions are implemented in csc 
 see ConversionTestWorking.exe.
+
+------- Additional Comments From marek.safar at seznam.cz  2006-08-23 10:04 -------
+Here is Microsoft comment on this issue.
+
+
+We looked into this further, and you are correct that this conversion
+is allowed despite not being defined in the BCL. It turns out there
+was a plan to add this to the BCL early in the development of .NET,
+but that never happened, and the temprorary fix in the compiler to
+enable it ended up remaining even though the conversion was not in the
+class libraries. That said, for backwards compatibility reasons we
+don't plan to change this behaviour now - since this doesn't have a
+significant negative effect on using the compiler.
+
+Thanks,
+Luke Hoban
+Visual C# Program Manager


More information about the mono-bugs mailing list