Re: Return values from gtk2 widget (void) methods
- From: Guillaume Cottenceau <gc mandrakesoft com>
- To: Dermot Musgrove <dermot glade perl connectfree co uk>
- Cc: "gtk-perl-list gnome org" <gtk-perl-list gnome org>
- Subject: Re: Return values from gtk2 widget (void) methods
- Date: 22 Oct 2002 12:42:35 +0200
Dermot Musgrove <dermot glade perl connectfree co uk> writes:
So what should happen? As a perler, I like the idea of returning 'true
when they succeed and 'undef' otherwise.' like system calls. Success is
easy to spot and failures are not easily confused with anything else.
I think it depends on which functions we're talking about.
Gtk2->init has been fixed by Goran to return 1 on success, which
is good. But most gtk functions/methods already have a prototype,
either they have a void return or they return information; we
should keep this, IMHO.
--
Guillaume Cottenceau - http://people.mandrakesoft.com/~gc/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]