Browse thread
Oops...
- Jonathan T Bryant
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| 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 Hashtable). --Jonathan ----------------------- --Jonathan Bryant jtbryant@valdosta.edu AIM: JonBoy3182 OAS AAS LLS ZG214