RE: [gtkmm] Glib::Module API issues
- From: Nick Huxley <nick anvil com>
- To: Ross Burton <r burton 180sw com>
- Cc: Murray Cumming Comneon com, GTKMM Mailing List <gtkmm-list gnome org>
- Subject: RE: [gtkmm] Glib::Module API issues
- Date: Fri, 21 Mar 2003 16:15:35 +0000 (GMT)
>
> As Paul just pointed out, constructors can throw exceptions (phew, that
> sucks otherwise).
You bet they can. It's destructors that can but shouldn't. Shudder.
The simple case
of
Test::Test(const int size)
{
my_array = new char[size];
}
will throw a memory exception if size it too large.
Nick
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]