[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [gtkmm] get method inconsistencies
- From: Murray Cumming <murrayc usa net>
- To: Jarek Dukat <madmaxer poczta fm>
- Cc: gtkmm-list <gtkmm-list gnome org>
- Subject: Re: [gtkmm] get method inconsistencies
- Date: 05 Aug 2002 17:09:02 +0100
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]