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

Re: what is a baton?

From: Justin Erenkrantz <jerenkrantz_at_apache.org>
Date: 2002-07-10 20:17:01 CEST

On Wed, Jul 10, 2002 at 02:12:47PM -0400, Scott Lenser wrote:
> Maybe I'm being stupid, but could someone clue me in as to what a baton is?
> I could find anything useful in the headers, docs, or web. Is it like a
> handle or a token or what? I've seen a lot of things programming over the
> years but seem to have missed this one somehow.

Join the club. I was scratching my head until I sat down and looked
at the code.

Basically, it is a structure that is passed down into other
functions that has a lot of "stuff" in it that those functions
use. In short, it's just a form of encapsulation.

A relay race's baton is probably the best analogy. -- justin

P.S. If I'm wrong, I know I'll be corrected...

To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Jul 10 20:17:30 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.