Declarations and Definitions in One Header
From: Steven T. Hatton (susudata_at_setidava.kushan.aa)
Date: 04/25/04
- Next message: Walter Tross: "Re: INCITS/ISO/IEC 14882:2003 vs INCITS/ISO/IEC 14882:1998"
- Previous message: Jakob Bieling: "Re: To inherit or not to"
- Next in thread: JKop: "Re: Declarations and Definitions in One Header"
- Reply: JKop: "Re: Declarations and Definitions in One Header"
- Reply: Karthik: "Re: Declarations and Definitions in One Header"
- Reply: Rolf Magnus: "Re: Declarations and Definitions in One Header"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 24 Apr 2004 19:56:09 -0400
Now why didn't *_I_* think of that!
Declarations and Definitions in One Header
C++ object definitions can be quite complex. In principle, your source code
will need two kinds of things for each object that you use across more than
one source file. First, you need an interface specification, describing its
structure with type declarations and function prototypes. Second, you need
the implementation itself. It can be tedious to maintain a separate
interface description in a header file, in parallel to the actual
implementation. It is also dangerous, since separate interface and
implementation definitions may not remain parallel.
-- STH Hatton's Law: "There is only One inviolable Law" KDevelop: http://www.kdevelop.org SuSE: http://www.suse.com Mozilla: http://www.mozilla.org
- Next message: Walter Tross: "Re: INCITS/ISO/IEC 14882:2003 vs INCITS/ISO/IEC 14882:1998"
- Previous message: Jakob Bieling: "Re: To inherit or not to"
- Next in thread: JKop: "Re: Declarations and Definitions in One Header"
- Reply: JKop: "Re: Declarations and Definitions in One Header"
- Reply: Karthik: "Re: Declarations and Definitions in One Header"
- Reply: Rolf Magnus: "Re: Declarations and Definitions in One Header"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|