Article View: news.software.nntp
Article #21147Re: How REALLY portable is C++?
From: zooko
Date: Mon, 01 Sep 1997 00:00
Date: Mon, 01 Sep 1997 00:00
47 lines
2125 bytes
2125 bytes
Igor Chudov @ home <ichudov@algebra.com> wrote: >Hello, > >I am planning to write a library and a set of tools, based on that >library, for advanced processing of mail and news messages. I intend the >library to be portable across many platforms, including major Unix(tm) >systems, various versions of Widows, and possibly Macintosh computers. <snip> Hi, Igor. When faced with this self-same situation, I and my team went with a subset of C++. It is sufficiently portable using various commercial compilers or g++ -- whatever is working that day! Subset rules: 1. No multiple inheritance except for pure-virtual pure-abstract mix-in base classes (i.e. just like Java "Interfaces"). 2. No templates. Period. Sorry! 3. We're using exceptions. Hopefully this won't blow up on us!! Of course, there will be no exceptions from destructors. This is problematic... 4. We also have a large set of restrictions merely for readability/consistency/safety (no operator overloading especially conversion operators, no constructors with functionality, no static casts, no dynamic casts if we can help it, no friends, no global anythings, etc. etc. Regards, Zooko P.S. Check out the new "fast-evolving" version of gcc called "egc" or some such ugly-sounding word. :-)
Technical Details
Message-ID:
<5ue70q$9me$1@news0.xs4all.nl>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.object.mbox.zip!not-for-mailReferences:
<199708290453.XAA15800@manifold.algebra.com>Show Full Headers
Complete Article Headers
Message-ID: <5ue70q$9me$1@news0.xs4all.nl> Subject: Re: How REALLY portable is C++? Date: Mon, 01 Sep 1997 00:00:00 +0000 From: zooko@xs4all.nl () References: <199708290453.XAA15800@manifold.algebra.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.object.mbox.zip!not-for-mail X-Deja-AN: 269397528 X-XS4ALL-Date: Mon, 01 Sep 1997 12:56:26 MET DST Organization: XS4ALL Newsgroups: comp.lang.c++,comp.lang.c,comp.object,news.software.nntp,alt.2600,comp.os.linux.development,alt.genius.bill-palmer