Re: Return values from gtk2 widget (void) methods

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 -

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]