> I'm learning subversion API right now and examining it's source
> code and
> examples. It's a lot of things in subversion source code that is
> called
> a "baton". For example, svn_cmdline_create_auth_baton() create
> "auth
> baton", and callbacks takes callback function pointer and, again,
> batons. I never heard of a term "baton" related to the programming.
> That
> is the "baton" concept subversion source code refers to? Maybe i
> can
> read somewhere about "batons" used in programming? Or is it a well-
> known
> term of some origin?

I don't know the svn code at all... but I expect it is analogous to a baton 
that relay race team uses. The first person starts running with the baton... he 
runs his leg and passes the baton to the next runner on the team... who takes 
it through his part of the course.

So, I would expect that a baton is some symbol or reference to an object that 
is passed from one function to another and each function performs its 
responsibility modifying the baton or possible using information stored in the 
baton.

BOb

Reply via email to