Go to the FreeLists Home Page Home Signup Help Login
 



[haiku-development] || [Date Prev] [03-2008 Date Index] [Date Next] || [Thread Prev] [03-2008 Thread Index] [Thread Next]

[haiku-development] Re: coding style

  • From: Marcus Overhagen <marcusoverhagen@xxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Mon, 3 Mar 2008 15:28:56 +0100 (CET)
Axel Dörfler  <axeld@xxxxxxxxxxxxxxxx> wrote:

> So how about just another compromise: we use "char* a" in public C++ 
> headers, and respect the maintainer's choice of that in modules to make 
> sure it's used consistently? That's at least better than what we have 
> now :-)

How about using two spaces, one before and one after the * as compromise?

char * foobar;
static const char * foobar;

and when used in column mode:
char *                   string;
const char *          string;

(I can't use tabs in this mail, but the strings start at the same column)

I think this looks most pleasing.


regards
Marcus


Jetzt komfortabel bei Arcor-Digital TV einsteigen: Mehr Happy Ends, mehr 
Herzschmerz, mehr Fernsehen! Erleben Sie 50 digitale TV Programme und optional 
60 Pay TV Sender, einen elektronischen Programmführer mit Movie Star 
Bewertungen von TV Movie. Außerdem, aktuelle Filmhits und prickelnde Erotik in 
der Arcor-Videothek. Infos unter www.arcor.de/tv





[ Home | Signup | Help | Login | Archives | Lists ]

All trademarks and copyrights within the FreeLists archives are owned by their respective owners.
Everything else ©2007 Avenir Technologies, LLC.