Date: Fri, 24 Jun 2005 23:19:41 +0800 From: Erich Dollansky <oceanare@pacific.net.sg> To: Ryan Sommers <ryans@gamersimpact.com> Cc: hackers@freebsd.org Subject: Re: To C++ or not to C++ Message-ID: <42BC248D.8060206@pacific.net.sg> In-Reply-To: <2140.66.166.104.222.1119623653.squirrel@66.166.104.222> References: <2140.66.166.104.222.1119623653.squirrel@66.166.104.222>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi, Ryan Sommers wrote: > > Anyway, without getting into too much detail. Anyone had to make this > choice on a project? What were your thoughts in retrospect? What would you > have done different, what would stay the same... > No matter what kind of project I did after the C++ hype was over it was in C++ with as little as object orientation as possible just to make use of the advantages compilers offer for C++. You need one or more interfaces to plain C libraries. You should see pretty fast where you better switch to C++ as long as you keep this clear line to C libraries always intact. You also should draw a clear line if your programs will be called from others. Draw the same clear line between C and C++ to avoid confusion and stick with plain C as much as possible. Never forget, many of the object orientated principles also work with plain C. Erich
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?42BC248D.8060206>