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

RE: Re: Context parameter in public API

From: Bill Tutt <rassilon_at_lyra.org>
Date: 2002-10-12 05:53:59 CEST

> From: Karl Fogel [mailto:kfogel@newton.ch.collab.net]
>
> Nuutti Kotivuori <naked@iki.fi> writes:
> > Is the 'config' file a feature of svn_client libraries or is it
> > something that only the command-line client uses?
>
> It's a feature of all of clients, IMHO. Our other configuration files
> (proxies) affect all clients, no reason why this one shouldn't as
> well. There might eventually be configuration options which are
> specific to certain clients, but we can deal with that when it arises.
>
> > If it is a part of the svn_client library functionality - then it
> > sprouts a few more questions. Is svn_time_to_human_nts part of the
> > svn_client library? I guess it is since it's supposed to be called
by
> > the callers of svn_client library. Does that mean that if the
context
> > is implemented, you cannot call svn_time_to_human_nts without having
a
> > context? How does this affect svnadmin and svnlook which need it
too?
>
> Hmmm. I mean, we could define svn_time_to_human_nts's behavior when
> the context baton is null, that's one solution.
>
> Or, instead of a context baton, should we just have a global
> Configuration object? (Please, no reflexive "globals are evil"
> responses. If this particular use of a global object is evil, say
> exactly why.)
>

The general answer to as to why globals are evil ends up revolving
around thread safety.

Bill

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 12 05:54:38 2002

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.