Re: Is CppUnit un-C++
From: David Hilsee (davidhilseenews_at_yahoo.com)
Date: 09/06/04
- Next message: IS: "Cheap Compiler and a Book"
- Previous message: Shiva: "===Welcome to comp.lang.c++! Read this first."
- In reply to: Steven T. Hatton: "Re: Is CppUnit un-C++"
- Next in thread: Steven T. Hatton: "Re: Is CppUnit un-C++"
- Reply: Steven T. Hatton: "Re: Is CppUnit un-C++"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 6 Sep 2004 00:49:25 -0400
"Steven T. Hatton" <susudata@setidava.kushan.aa> wrote in message
news:2pidnfZsMv4C5qfcRVn-sg@speakeasy.net...
> Derrick Coetzee wrote:
>
> > Steven T. Hatton wrote:
> >> If I do use local variables for class types, they require that I
#include
> >> the headers containing their definitions in the header containing the
> >> class I'm
> >> defining. That is, instead of simply forward declaration.
> >
> > Typically, nothing in a header file contains local variables anyway,
> > except inline functions.
>
> In this context it seems clear that /local/ was meant to signify 'class
> local'. That is to say class type used as members of the class being
> defined. I would not have introduced the word 'local' to describe such a
> member, but I believe it is technically correct. Add to the following
that
> a class definition is a class specifier declaration:
<snip>
In my post, I meant that they could be local to testEquality and
testAddition. I think my wording was a bit confusing. At any rate, it
doesn't matter much, because it would also make more sense to have them as
members instead of pointers. IMHO, either way is better. While it is true
that members can cause unnecessary recompilation in certain cases, I doubt
that this will be a big problem for test code. When I want to avoid those
problems, I usually just use the pimpl idiom.
-- David Hilsee
- Next message: IS: "Cheap Compiler and a Book"
- Previous message: Shiva: "===Welcome to comp.lang.c++! Read this first."
- In reply to: Steven T. Hatton: "Re: Is CppUnit un-C++"
- Next in thread: Steven T. Hatton: "Re: Is CppUnit un-C++"
- Reply: Steven T. Hatton: "Re: Is CppUnit un-C++"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|