[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: CVS update: subversion/subversion/client add-cmd.c checkout-cmd.c cl.h commit-cmd.c delete-cmd.c main.c propget-cmd.c proplist-cmd.c props.c propset-cmd.c status-cmd.c update-cmd.c

From: Greg Stein <gstein_at_lyra.org>
Date: 2000-11-19 19:50:45 CET

On Sun, Nov 19, 2000 at 08:40:34AM -0800, Bob Miller wrote:
> Greg Stein wrote:
>
> > Specifically, Apache #defines strchr() to be ap_strchr(), which is defined
> > as [....]
> >
> > Thoughts?
>
> Stuff like this makes C++ look real good.

How would you declare strchr() do return the same type as what was passed
in, *and* restrict it to once of "const char *" or "char *" ?? A template
would be handy, but that would allow any type. If you used the template
yourself to declare two functions... well, that is exactly what Apache did
(but with the complexity of introducing a template).

> (But in general, C++ does NOT look real good, IMO.)

I vehemently agree :-)

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/
Received on Sat Oct 21 14:36:15 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.