From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10f8a1,e7e13c943c611b62 X-Google-Attributes: gid10f8a1,public X-Google-Thread: 1164f8,be3d6a6131c61fa7 X-Google-Attributes: gid1164f8,public X-Google-Thread: 102b75,be3d6a6131c61fa7 X-Google-Attributes: gid102b75,public From: Erik Corry Subject: Re: Exception handling Date: 1999/04/25 Message-ID: <7fv0ib$1kgem$1@xinwen.daimi.au.dk>#1/1 X-Deja-AN: 470654431 References: <36E9F2A0.9A401A09@pacific.net.sg> <924046418.053.46@news.remarQ.com> X-Complaints-To: news@daimi.au.dk X-Trace: xinwen.daimi.au.dk 925042059 1720790 255.255.255.255 (25 Apr 1999 12:07:39 GMT) Organization: University of Aarhus, Department of Computer Science (DAIMI) User-Agent: tin/pre-1.4-980818 ("Laura") (UNIX) (SunOS/5.5.1 (sun4u)) NNTP-Posting-Date: 25 Apr 1999 12:07:39 GMT Newsgroups: comp.arch,comp.sys.dec,vmsnet.alpha In comp.arch Zalman Stern wrote: > There is definitely room for improvement in binary interoperability in C++ > environments. The problems are not restricted to differences between C++ compilers and versions, but are also made worse by the normal recommended C++ programming idiom where the sizes of all objects are exposed through the .h files to the users of your libraries who will put them on the stack, make arrays of them, subclass them and generally do things that mean you can never ever add as much as one single private member variable without breaking binary compatibility with your old library versions. There are ways around this 'fragile base class' problem, of course, where you put all the data in a separate object, or make sure you have enough padding in your classes for future expansion, but C++ doesn't actively support this way of doing things, or check that you don't accidentally get it wrong. Qt and Be's libraries suffer from this. I imagine any C++-based library will. -- Erik Corry erik@arbat.com Ceterum censeo, Microsoftem esse delendam!