Newsgroups: comp.lang.c++,comp.lang.smalltalk,comp.object
Path: cantaloupe.srv.cs.cmu.edu!das-news2.harvard.edu!news2.near.net!howland.reston.ans.net!news.moneng.mei.com!uwm.edu!reuter.cse.ogi.edu!cs.uoregon.edu!news.uoregon.edu!engineer.mrg.uswest.com!cherokee!da_vinci!lookout!tblanch
From: tblanch@lookout (Todd Blanchard)
Subject: Re: C++ Productivity
Message-ID: <D3ox7s.HB9@da_vinci.ecte.uswc.uswest.com>
Followup-To: comp.lang.c++,comp.lang.smalltalk,comp.object
Sender: news@da_vinci.ecte.uswc.uswest.com (IT Netnews)
Nntp-Posting-Host: lookout
Organization: US WEST Information Technologies
X-Newsreader: TIN [version 1.2 PL2]
References: <1995Jan23.193745.7044@boole.com> <jim.fleming.84.00133AB6@bytes.com> <D3FuGq.Kwv@da_vinci.ecte.uswc.uswest.com> <1995Feb4.210947.718@mole-end.matawan.nj.us> <D3L8AC.2uL@da_vinci.ecte.uswc.uswest.com> <3h921k$a3u@maggie.clear.co.nz>
Date: Wed, 8 Feb 1995 16:45:28 GMT
Lines: 19
Xref: glinda.oz.cs.cmu.edu comp.lang.c++:111690 comp.lang.smalltalk:20565 comp.object:26391

Lynn Prentice (lprentic@clear.co.nz) wrote:

: A macro is NOT typesafe.

Huh?  Don't be silly, of course it is typesafe.  Look here:

#define ADD(X,Y) ((X)+(Y))

class foo
{...};

ADD(2,3); // fine you can add ints
foo f;
ADD(5,f); // error you can't add an int to a foo

Its just text replacement, if your code is OK, it compiles, if its not,
it won't.

Todd Blanchard
