[Gtk-sharp-list] Gdk.Color, further comments.

Lee Mallabone gnome@fonicmonkey.net
28 Feb 2003 22:39:00 +0000

On Fri, 2003-02-28 at 20:51, Miguel de Icaza wrote:

>    Further comments on Gdk.Color.  I do not feel strongly about some of
> these, but I would like to have a discussion on them:
> 	* Gdk.Color.Parse returns an int indicating whether it succeeded
> 	  or not.  Can we map the return value to bool?

How about having a void return type and throwing an exception if the parse failed?
I'm not sure if that's any easier to do than returning a bool, but it seems like a better use of the c# language features than having to check the return value.