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

callback compat (was: svn commit: r9664 ...)

From: Greg Stein <gstein_at_lyra.org>
Date: 2004-05-10 23:15:34 CEST

On Mon, May 10, 2004 at 10:42:02AM -0400, Greg Hudson wrote:
> What's the definition of "callback compatibility?" The implementation
> seems to simply reverse the direction of the compatibility test. To the
> best of my knowledge, we treat changing the signature of a callback as
> if it were changing the signature of any API which uses that callback,
> so we have no concept of "callback compatibility."


The versioning guidelines are all about, "what happens when I update this
library? will my code continue to work? what do I need to do to make it
work post-upgrade?" So a callback signature cannot change, except across
major API upgrades of the library. Across minor upgrades, you can *add*

Consider that you have to get a callback *into* the library. Thus,
somewhere in the library's API is a signature holding the callback.
Changing the signature on the callback implies a signature change on the
function receiving the callback. Thus, you have the answer to how the
versioning applies here.

I hope that was clear enough.


Greg Stein, http://www.lyra.org/
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon May 10 23:17:25 2004

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.