[cl-store-devel] cl-store for ABCL

Alex Mizrahi alex.mizrahi at gmail.com
Sat Dec 16 14:50:57 UTC 2006


helo

thanks for adding support of ABCL to cl-store!

it works for simple hash-tables,
but, i have a problem with restoring nested hash-tables (hash-table
whose values are hash-tables):

CL-USER(16): (setq *ht1* (make-hash-table))
#<EQL hash table, 0 entries, 16 buckets {7E6FB2}>
CL-USER(17): (setf (gethash 1 *ht1*) (make-hash-table))
#<EQL hash table, 0 entries, 16 buckets {D71AA7}>
CL-USER(18): (setf (gethash 2 (gethash 1 *ht1*)) 1)
1
CL-USER(19): (cl-store:store *ht1* "ht1.store")
#<EQL hash table, 1 entry, 16 buckets {7E6FB2}>
CL-USER(20): (cl-store:restore "ht1.store")
Debugger invoked on condition of type RESTORE-ERROR:
  The function #<CL-STORE::REFERRER {F42466}> is undefined.
Restarts:
  0: TOP-LEVEL Return to top level.

additionally, there were problems restoring store made by CLISP. it
have written EXT:FASTHASH-EQUAL as a hash-function in CLISP, which
does not exist in ABCL, so i had to map EXT:FASTHASH-EQUAL to
CL:EQUAL, and after that hash table loaded successfully. i don't know
if cross-implementation restoring is supported, but it's very nice
that it's possible to do it :)

with best regards, Alex 'killer_storm' Mizrahi.



More information about the cl-store-devel mailing list