Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
Calendar library: version 2.0
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2008-02-13 (10:24)
From: Richard Jones <rich@a...>
Subject: Re: [Caml-list] Calendar library: version 2.0
On Wed, Feb 13, 2008 at 10:30:47AM +0100, Julien Signoles wrote:
> >OK, I take that back.  Everything is now packed under CalendarLib.*
> >which makes the issue of module names moot.
> Indeed it is one of my arguments for packing calendar.
> >Also it means nothing is backwards compatible :-(  That could be a
> >problem because it means I need to release two different versions of
> >everything which uses the calendar library, but at least that's just a
> >one-off event.
> You're obviously right: as calendar is now packed, everything which uses 
> calendar v1.* does not work anymore with calendar v2.* (and vice-versa).
> But the only change to do in your code is: add "open CalendarLib" at the 
> top of your files and all is fine because the API is backward compatible 
> inside the pack.

It may be a tiny change, but it still needs two versions of the code
to deal with.

API changes aren't handled gracefully in OCaml.  The same thing
happens whenever the lablgtk API changes incompatibly - I end up using
the C preprocessor or Makefile hacks.


Richard Jones
Red Hat