Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c++ > #7595

Re: header only C++ code or not?

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!news.musoftware.de!wum.musoftware.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From "Bo Persson" <bop@gmb.dk>
Newsgroups comp.lang.c++
Subject Re: header only C++ code or not?
Date Thu, 7 Jul 2011 19:17:25 +0200
Lines 20
Message-ID <97m80tFq8dU1@mid.individual.net> (permalink)
References <16efe2a8-09b1-4d1d-9550-f6330de89718@j15g2000yqf.googlegroups.com> <HE4Rp.25728$fQ4.24899@newsfe16.ams2>
X-Trace individual.net 7DQFFFMDBycPMxYHpbkV+QOJydcEPvNvYbBwkPwQ3wPAgajoHj
Cancel-Lock sha1:EBJ/fAfzUZ1oQGnH2uGQGIOPjDo=
X-Priority 3
X-MSMail-Priority Normal
X-Newsreader Microsoft Outlook Express 6.00.2900.5931
X-MimeOLE Produced By Microsoft MimeOLE V6.00.2900.6109
X-RFC2646 Format=Flowed; Response
X-Antivirus avast! (VPS 110707-0, 2011-07-07), Outbound message
X-Antivirus-Status Clean
Xref x330-a1.tempe.blueboxinc.net comp.lang.c++:7595

Show key headers only | View raw


Andrew Holme wrote:
> "kathy" <yqin_99@yahoo.com> wrote in message
> news:16efe2a8-09b1-4d1d-9550-f6330de89718@j15g2000yqf.googlegroups.com...
>> I have question about write C++ code. I have seen some developer
>> use head only style (all class definition and implementation in .h
>> file), But others like to seperate the definition and
>> implementation in h / cpp file. Is this the style / favor only or
>> there are some benefits to use one vs the other?
>>
>
> You could give someone the header and a compiled binary without
> revealing the inards of your implementation to them.

The can also start coding against the interface even before there is 
an implementation.


Bo Persson

Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

header only C++ code or not? kathy <yqin_99@yahoo.com> - 2011-07-06 14:27 -0700
  Re: header only C++ code or not? "Andrew Holme" <ah@nospam.com> - 2011-07-06 22:42 +0100
    Re: header only C++ code or not? "Bo Persson" <bop@gmb.dk> - 2011-07-07 19:17 +0200
  Re: header only C++ code or not? Sam <sam@email-scan.com> - 2011-07-06 17:23 -0500
  Re: header only C++ code or not? Noah Roberts <roberts.noah@gmail.com> - 2011-07-06 16:14 -0700
    Re: header only C++ code or not? "MikeP" <mp011011@some.org> - 2011-07-07 15:35 -0500
    Re: header only C++ code or not? "MikeP" <mp011011@some.org> - 2011-07-07 15:45 -0500
  Re: header only C++ code or not? "Paul" <pchristor@yahoo.co.uk> - 2011-07-07 01:24 +0100
  Re: header only C++ code or not? Thomas Boell <tboell@domain.invalid> - 2011-07-07 14:24 +0200
    Re: header only C++ code or not? "Balog Pal" <pasa@lib.hu> - 2011-07-07 14:57 +0200
      Re: header only C++ code or not? Garrett Hartshaw <ghartshaw@gmail.com> - 2011-07-07 11:40 -0400
        Re: header only C++ code or not? Thomas Boell <tboell@domain.invalid> - 2011-07-07 19:38 +0200
          Re: header only C++ code or not? Garrett Hartshaw <ghartshaw@gmail.com> - 2011-07-09 09:06 -0400
            Re: header only C++ code or not? Thomas Boell <tboell@domain.invalid> - 2011-07-09 16:23 +0200
    Re: header only C++ code or not? "Bo Persson" <bop@gmb.dk> - 2011-07-07 19:16 +0200

csiph-web