Article View: comp.windows.ms.programmer
Article #3382RE: C++ Does Allow Identifier Declar & Define
From: coates
Date: Mon, 24 Jun 1991 22:31
Date: Mon, 24 Jun 1991 22:31
20 lines
1410 bytes
1410 bytes
The Subject: should actually read:
"C++ Does Allow Identifier Declaration and Definition Simultaneously"
This is demonstrated by the fragment:
in main()
Line ALine(1, 150);
here ALine is an instantiation of Line. It is here declared
and defined simultaneously. One could argue that the type 'Line'
has already been declard, so that everything is kosher. Any other
mistyped reference to 'Line' or 'ALine' would be flagged by the
linker.
**************************************************************************
* Elliott Coates, washington dc *
* coates@uc780.umd.edu *
* coates@uc780.bitnet *
**************************************************************************
Technical Details
Message-ID:
<24JUN91.22311139@uc780.umd.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!sdd.hp.com!wuarchive!udel!haven.umd.edu!socrates.umd.edu!uc780.umd.edu!coatesReferences:
<24JUN91.20520720@uc780.umd.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!sdd.hp.com!wuarchive!udel!haven.umd.edu!socrates.umd.edu!uc780.umd.edu!coates From: coates@uc780.umd.edu Newsgroups: comp.windows.ms.programmer Subject: RE: C++ Does Allow Identifier Declar & Define Message-ID: <24JUN91.22311139@uc780.umd.edu> Date: 24 Jun 91 22:31:11 GMT References: <24JUN91.20520720@uc780.umd.edu> Sender: news@socrates.umd.edu (News) Organization: The University of Maryland University College Lines: 20