Re: [gtkmm] get method inconsistencies



On Mon, 2002-08-05 at 16:55, Jarek Dukat wrote:
> > > error.h              domain()    -> get_domain()
> > >                      code()      -> get_code()
> > >                      what()      -> get_message()    !! more
> descriptive
> >
> > what() is meant to be the same as std::exception::what(). The others
> > should probably be consistent with that.
> 
> STL's exceptions' what() return char* while Glibmm returns Glib::ustring.

I guess the problem is that char* looks like it contains ANSI text, but
it might contain UTF8 including null characters before the end.

> It is not a big problem, but it may be a bit confusing. I myself had had a
> situation where it's been a problem.

Please give us more details.

> Perhaps we could have const char* what() and Glib::ustring get_message()
> or something... But it is just cosmetics.

-- 
Murray Cumming
murrayc usa net
www.murrayc.com




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