Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: SSE2-Intrinsic Wrapper - Source Code

Author: Russell Reagan

Date: 09:50:26 10/08/03

Go up one level in this thread


On October 08, 2003 at 10:35:24, Anthony Cozzie wrote:

>Some people prefix all of their classes with C.  I personally use 'z' for most
>of my structs in zappa to avoid any remote possibility of a conflict.

In C++ you should use namespaces instead of variable/function/class prefixes.
That will give you more flexibility if you want to change something, and if
there is a conflict with something, you just have to change the name of your
namespace rather than go through your entire program and change every place
where you have prepended 'z' to a variable or function.



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.