Re: API question about RecentManager



On Wed, 2006-07-19 at 21:33 -0500, Jonathon Jongsma wrote:
> I've got a question about the new RecentManager API.  In the past,
> many classes have used function overloading where GTK+ had to resort
> to different function names because they had two similar functions
> that took slightly different arguments.  However, I noticed that
> RecentManager has the following API:
> bool 	add_full (const Glib::ustring& uri, const Data& recent_data)
> bool 	add_item (const Glib::ustring& uri)
> 
> Is there any reason that we couldn't just name them both add_item?  I
> think I prefer function overloading instead of different function
> names here.  Anyone else?

Yes, that sounds good. Well spotted.

-- 
Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com




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