[Mono-bugs] [Bug 74793][Nor] Changed - can't cast to certain types

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Jul 7 19:37:10 EDT 2005


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 toshok at ximian.com.

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

--- shadow/74793	2005-05-03 16:29:26.000000000 -0400
+++ shadow/74793.tmp.10790	2005-07-07 19:37:10.000000000 -0400
@@ -32,6 +32,14 @@
 attempt to cast (and find that "ok" is not of a class type, like the cast
 to Stream does).
 
 ------- Additional Comments From toshok at ximian.com  2005-05-03 16:29 -------
 There are also syntax errors when trying to cast to (type[]) or
 (type*).  the grammar needs augmenting.
+
+------- Additional Comments From toshok at ximian.com  2005-07-07 19:37 -------
+The biggest problem with casts not working is the CastExpression's
+reliance on ITargetClassType/ITargetClassObject for the type/value in
+the expression.  This of course won't work for languages without
+classes, and even in the mono backend case, some types aren't
+represented by MonoClassType (strings and fundamental types are all
+represented by other, non ITargetClassType types).


More information about the mono-bugs mailing list