httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Marr <>
Subject Re: Yet another discussion and [PATCH] for ap_sendfile
Date Tue, 23 Nov 1999 23:09:49 GMT
At 05:09 PM 11/23/99 , you wrote:
>On Mon, 22 Nov 1999, Ryan Bloom wrote:
> >...
> > Oh, I also changed a parameter name.  I am trying VERY hard not 
> to name
> > variables the same name as a C Run-Time function.  That's why all 
> the old
> > ap_socket_t *socket 's have been renamed to ap_socket_t *sock.
>You might also want to toss your uses of "new" as a variable name. I 
>I saw that in some of the locking code.
>Needless to say, "new" will cause problems with C++ compiles.

When recently porting a 1M+ line program from C to C++, I ran into a 
few other reserved words from C++ that were used heavily: delete, 
class, typeid, this.

For people not familiar with C++, you might want to watch out for 
these reserved words if there is any chance your code will be 
converted to C++ (some of these are very unlikely to appear anywhere 
but in a C++ program, but you never know): bad_cast, bad_typeid, 
bool, catch, class, const_cast, delete, dynamic_cast, explicit, 
export, false, friend, inline, mutable, namespace, new, operator, 
private, protected, public, reinterpret_cast, static_cast, template, 
this, throw, true, try, typeid, typename, using, virtual.

Greg Marr
"We thought you were dead."
"I was, but I'm better now." - Sheridan, "The Summoning"

View raw message