Re: gtk2-perl / easily accessing objects properties
- From: lanzz lanzz org
- To: pozsy sch bme hu
- Cc: Goran Thyni <goran kirra net>, Guillaume Cottenceau <gc mandrakesoft com>, gtk-perl-list gnome org
- Subject: Re: gtk2-perl / easily accessing objects properties
- Date: Wed, 30 Oct 2002 09:42:57 +0200 (EET)
On Tue, 29 Oct 2002 pozsy sch bme hu wrote:
GET: $window->allow_shrink;
SET: $window->allow_shrink($flag);
which is shorter and cleaner.
But please implement those such a way that SET always returns the
$flag just set. (ie. ->allow_shrink etc always acts as GET, but if you
supply an argument, it also acts as a SET beforehand.)
would be better to return the old value. so you could say
$old = $window->allow_shrink(0);
...
$window->allow_shrink($old);
lanzz
--
$_=q<$_=q<,>;s/,/$_/;print;>;s/,/$_/;print;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]