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

Re: const-ness

From: Branko Čibej <brane_at_xbc.nu>
Date: 2000-12-16 07:07:31 CET

Greg Stein wrote:

> Mostly, the only change is when lists are constructed. Currently, this is
> typically done by creating and empty list, followed by a set of prepend
> calls. I could see a variadic function to create a list from the N args.
> I'm thinking something like:
>
> list = make_list(pool, "ssSm", cstr1, cstr2, svnstr1, ptr, len);

No no no no! I'm shocked that you're talking about adding "const" for
safety reasons and variadic functions in the same breath.

> [ and yes: if I suggest it, then I'm also signing up to write it if need be ]

Ah, then you're also signing up to debug all wrong usage that'll crop
up. That's fine then, go ahead. :-)

-- 
Brane �ibej
    home:   <brane_at_xbc.nu>             http://www.xbc.nu/brane/
    work:   <branko.cibej_at_hermes.si>   http://www.hermes-softlab.com/
     ACM:   <brane_at_acm.org>            http://www.acm.org/
Received on Sat Oct 21 14:36:17 2006

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