🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c++
Article #3799

Quick questions

#3799
From: Andrew Bell
Date: Mon, 25 Mar 1996 18:07
36 lines
2243 bytes
Hopefully these will have short answers, and aren't inappropriate for
the newsgroup.

1) Is there any way to catch an exception thrown in the constructor of
a statically constructed object?  Does it call unexpected() or
terminate() even?

2) From a previous post on this group, it looks like the standard will
allow one to define conversion operators for pre-existing, source code
untouchable data types.  Yes? No? What will this look like? I have the
May copy of the WP, and don't see any mention of this.

3) I often write what I call "pure wrapper" classes to give access
protection and data abstraction to pre-existing data types.  A pure
wrapper class is a class that adds no member variables or virtual
member functions to a class/struct that has no virtual functions of
its own, so their size and alignment should be the same and casting
between the two should be perfectly safe.  The new standard doesn't
have any special support (for example, allowing it automatically) for
this, does it?

4) With RTTI, a derived class that doesn't change any virtual member
funcs or add any properties to a base class still evaluates to a
different object type, correct?

Thanks for any and all answers.

Andrew Bell
abell@mindspring.com
---
[ comp.std.c++ is moderated.  To submit articles: Try just posting with your 
                newsreader.  If that fails, use mailto:std-c++@ncar.ucar.edu
  comp.std.c++ FAQ: http://reality.sgi.com/austern/std-c++/faq.html
  Moderation policy: http://reality.sgi.com/austern/std-c++/policy.html
  Comments? mailto:std-c++-request@ncar.ucar.edu 
]
Technical Details
Message-ID: <4j5b26$1e7a@mule1.mindspring.com>
Path: arc1-ca.pugleaf.net!chronicle.mti.sgi.com!austern

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!chronicle.mti.sgi.com!austern
From: abell@mindspring.com (Andrew Bell)
Newsgroups: comp.std.c++
Subject: Quick questions
Date: 25 Mar 1996 10:07:29 PST
Organization: MindSpring Enterprises
Approved: austern@isolde.mti.sgi.com
Message-ID: <4j5b26$1e7a@mule1.mindspring.com>
NNTP-Posting-Host: isolde.mti.sgi.com
X-Original-Date: Mon, 25 Mar 1996 05:33:18 GMT
X-Newsreader: Forte Agent .99.82
X-Auth: PGPMoose V1.1 PGP comp.std.c++
 iQBVAwUBMVbg8Uy4NqrwXLNJAQFYlQH/Z+SlC2xOUbaKixzUVrNXny4syRe57NKT
 +8tqAw5/3pgrzCoPgBpAr/R3krlrlfimqRhF9sGYYiUQHdtZMqcUJw==
 =tvou
Originator: austern@isolde.mti.sgi.com