[Mono-bugs] [Bug 75028][Wis] Changed - Cairo graphics class should
have virtual functions
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Mon May 23 13:12:33 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 bmaurer at users.sf.net.
http://bugzilla.ximian.com/show_bug.cgi?id=75028
--- shadow/75028 2005-05-23 12:51:51.000000000 -0400
+++ shadow/75028.tmp.30080 2005-05-23 13:12:33.000000000 -0400
@@ -43,6 +43,16 @@
is actually just a guess).
Because Cairo.Graphics is created _then_ assigned a surface
subclassing it shouldn't be a problem. A function to draw custom
shapes could be implemented for instance.
+
+------- Additional Comments From bmaurer at users.sf.net 2005-05-23 13:12 -------
+If we allow subclassing of the Graphics, we will get into nasty issues
+like "what if I pass a graphics to native code in one place and get it
+back in another" issues. Thus, it's important we seal the class to
+make it clear that we do not deal with, and never want to deal with,
+such issues.
+
+Also, overriding a function in managed code won't affect unmanaged
+calls. So you aren't really making things virtual.
More information about the mono-bugs
mailing list