[mercury-users] Inst problem with hash tables
Ralph Becket
rafe at csse.unimelb.edu.au
Tue Sep 23 15:14:23 AEST 2008
Andrea Bini, Monday, 22 September 2008:
> It is compiled with no errors but when run it reports the error
> "Invalid ht.dat". I think that the problem resides in the high-order
> term in the hash table structure. It is written to disk just as the
> string '<<predicate>>'.
> How can I fix this problem?
Ah, of course! The short answer is: you can't, because there is no
portable way of writing out bits of code (which is what the higher order
term is).
In this case I withdraw my objection to Paul's suggestion. The solution
has to be something like that: convert the hash_table into an
assoc_list and use that as your on-disc representation. Sorry for
misleading you.
-- Ralph
--------------------------------------------------------------------------
mercury-users mailing list
Post messages to: mercury-users at csse.unimelb.edu.au
Administrative Queries: owner-mercury-users at csse.unimelb.edu.au
Subscriptions: mercury-users-request at csse.unimelb.edu.au
--------------------------------------------------------------------------
More information about the users
mailing list