Article View: rec.games.programmer
Article #1981Re: Should I learn C or C++ first?
From: Matt Austern
Date: Wed, 16 Aug 1995 16:58
Date: Wed, 16 Aug 1995 16:58
19 lines
1778 bytes
1778 bytes
In article <40sj1n$bd4@lemon.easynet.co.uk> garyl@byc.easynet.co.uk (21st century caffeine boy ) writes: > >#defines are still useful in C++, though not as much. > If you're crap, yes. That's unfair. I see three uses for #define in C: defining constants, defining macros, and setting flags for conditional compilation. C++ has largely eliminated the first two uses, but the third remains. People still need to write code that will compile on multiple platforms, and sometimes that still requires #ifdef. I'd like to see the preprocessor go away: I'd like to see #include replaced by a proper modules system, and #define disappear entirely. It's not quite possible, though. #ifdef is still necesary, and while #ifdef is still in the language #define will have to stay too. -- Matt Austern He showed his lower teeth. "We matt@physics.berkeley.edu all have flaws," he said, "and http://dogbert.lbl.gov/~matt mine is being wicked."
Technical Details
Message-ID:
<MATT.95Aug16095820@godzilla.EECS.Berkeley.EDU>Path:
arc1-ca.pugleaf.net!howland.reston.ans.net!agate!agate!mattReferences:
<3v6qkj$8ak@news1.best.com> <3v713f$2bd@ixnews6.ix.netcom.com> <408rnk$auj@seagoon.newcastle.edu.au> <40etar$11n@st-james.comp.vuw.ac.nz> <40o2ee$aqp@deyke3.fc.hp.com> <40sj1n$bd4@lemon.easynet.co.uk>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!howland.reston.ans.net!agate!agate!matt From: matt@godzilla.EECS.Berkeley.EDU (Matt Austern) Newsgroups: rec.games.programmer,comp.lang.c++ Subject: Re: Should I learn C or C++ first? Date: 16 Aug 1995 16:58:20 GMT Organization: University of California at Berkeley (computational neuroscience) Message-ID: <MATT.95Aug16095820@godzilla.EECS.Berkeley.EDU> References: <3v6qkj$8ak@news1.best.com> <3v713f$2bd@ixnews6.ix.netcom.com> <408rnk$auj@seagoon.newcastle.edu.au> <40etar$11n@st-james.comp.vuw.ac.nz> <40o2ee$aqp@deyke3.fc.hp.com> <40sj1n$bd4@lemon.easynet.co.uk> Reply-To: matt@physics.berkeley.edu NNTP-Posting-Host: godzilla.eecs.berkeley.edu In-reply-to: garyl@byc.easynet.co.uk's message of Wed, 16 Aug 1995 18:51:25 GMT