Hashmaps sort-of work but there are still bugs and one test is failing that wasn't.

This commit is contained in:
Simon Brooke 2021-08-16 18:55:02 +01:00
parent bfd7304da1
commit 4fc9545be8
No known key found for this signature in database
GPG key ID: A7A4F18D1D4DF987
12 changed files with 206 additions and 487 deletions

View file

@ -27,15 +27,17 @@
* part of the implementation structure of a namespace.
*/
#define HASHTAG "HASH"
#define HASHTV 0
#define HASHTV 1213415752
#define hashmapp(conspoint)((check_tag(conspoint,HASHTAG)))
/*
* a namespace (i.e. a binding of names to values, implemented as a hashmap)
* TODO: but note that a namespace is now essentially a hashmap with a write ACL
* whose name is interned.
*/
#define NAMESPACETAG "NMSP"
#define NAMESPACETV 0
#define NAMESPACETV 1347636558
#define namespacep(conspoint)(check_tag(conspoint,NAMESPACETAG))
@ -43,7 +45,7 @@
* a vector of cons pointers.
*/
#define VECTORTAG "VECT"
#define VECTORTV 0
#define VECTORTV 1413694806
#define vectorp(conspoint)(check_tag(conspoint,VECTORTAG))