Article View: comp.std.c++
Article #2909Re: stop adding keywords to C++
From: Andrew Koenig
Date: Sat, 09 Dec 1995 01:28
Date: Sat, 09 Dec 1995 01:28
21 lines
1342 bytes
1342 bytes
In article <4a12d7$vps@mujibur.inmind.com> mfinney@inmind.com writes: > This is one of the biggest problems with C/C++. Since typedef is > "transparent" you can't overload on it. If C/C++ had a "type" which > is identical to "typedef" except that the type defined is opaque so > that overloading is possible then programming could be simplified in > many cases. And would have made the bool type unnecessary because > it COULD have been defined in the language with that extension. How would you arrange for the expression 3<4 to yield the right type? -- --Andrew Koenig ark@research.att.com --- [ comp.std.c++ is moderated. Submission address: std-c++@ncar.ucar.edu. Contact address: std-c++-request@ncar.ucar.edu. The moderation policy is summarized in http://dogbert.lbl.gov/~matt/std-c++/policy.html. ]
Technical Details
Message-ID:
<DJAJ44.J5w@research.att.com>Path:
arc1-ca.pugleaf.net!howland.reston.ans.net!agate!agate!MattReferences:
<Pine.SOL.3.91.951203010216.13007A-100000@barney> <49vplf$mvs@engnews2.Eng.Sun.COM> <4a12d7$vps@mujibur.inmind.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!howland.reston.ans.net!agate!agate!Matt From: ark@research.att.com (Andrew Koenig) Newsgroups: comp.std.c++ Subject: Re: stop adding keywords to C++ Date: 09 Dec 1995 01:28:34 GMT Organization: AT&T Bell Laboratories, Murray Hill NJ Approved: Matt@Austern Message-ID: <DJAJ44.J5w@research.att.com> References: <Pine.SOL.3.91.951203010216.13007A-100000@barney> <49vplf$mvs@engnews2.Eng.Sun.COM> <4a12d7$vps@mujibur.inmind.com> NNTP-Posting-Host: austern.hip.berkeley.edu