Re: gtk2-perl / easily accessing objects properties



lanzz lanzz org writes:

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

There is no semantic meaning in returning a value when doing a
set, neither the new nor the old value, in my opinion.

-- 
Guillaume Cottenceau - http://people.mandrakesoft.com/~gc/



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