Re: Operation options (filtering, sorting and more)



On Tue, 2011-03-15 at 17:48 +0100, Guillaume Emont wrote:
> > Both might inherit from a parent GrlOptions, and even this
> GrlOptions
> > could be an aggregation of different options: source would get a
> > GrlOptions element, and it could extract from it the
> GrlOptionsFilter
> > and the GrlOptionsSort to do the job.
> Well, in the future, if we really feel it's needed, I guess we can
> regroup some members of the GrlOperationOptions structure into some
> structures, but I really can't see the point of having these
> structures
> inherit from GrlOperationOptions. I think a good rule of thumb for
> that
> is "if you can do it with composition, don't do it with inheritance".
> 


Sorry, when I meant "inheriting" I was not strictly thinking about
inheriting in the gobject sense: just having a way that GrlOptions is
just a place where user can set up different options, but the options
are structures themselves: GrlOptionFilter or GrlOptionSort.


	J.A.




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