English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2005-12-02 (14:58)
From: Jonathan T Bryant <jtbryant@v...>
Subject: Oops...
Forgot to save before sending that.  This copy keeps a free list for 
indicies in the dataset so that values don't accidentally get 
overwritten.  It does still have a bug in the destroy function, though 
(I forgot you can't compare functional values).  Conveniently, this 
could be fixed by recursively using the Dataset module to store the 
observer functions and returning a number when one is registered and 
using a number to unregister them.  Also, point of interest, the 
Dataset module could be functorized so that different implementations 
could be used (i.e., persistent using hand rolled code or bindings to 
DBD or a SQL database, or a Red Black Tree/an Array instead of a 


--Jonathan Bryant
  AIM: JonBoy3182