[Gtk-sharp-list] Gdk.Color, further comments.
01 Mar 2003 16:17:32 -0600
On Sat, 2003-03-01 at 13:04, Miguel de Icaza wrote:
> > > * 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.
> Exceptions are useful to propagate information to upper layers easily.
> And this just does not seem like the kind of error you need to propagate
Couldn't agree more.
So back to the original suggestion, since according to the docs it looks
like the return is a TRUE/FALSE badly specified as an int, I just
committed a metadata change to mark this return value as bool.
Mike Kestner <email@example.com>