fuuuuck!
This commit is contained in:
@@ -5,7 +5,7 @@ use std::slice;
|
|||||||
|
|
||||||
use internment::Intern;
|
use internment::Intern;
|
||||||
|
|
||||||
use crate::{gc};
|
use crate::gc;
|
||||||
|
|
||||||
pub type scm_bits = u64;
|
pub type scm_bits = u64;
|
||||||
|
|
||||||
|
|||||||
@@ -1,26 +1,26 @@
|
|||||||
use std::{collections::HashMap, ops::DerefMut as _, sync::{LazyLock, RwLock}};
|
use std::{collections::HashMap, ops::DerefMut as _, sync::{LazyLock, RwLock}};
|
||||||
use crate::scm::scm_bits;
|
use crate::scm::scm_bits;
|
||||||
|
|
||||||
// struct Vars (
|
struct Vars (
|
||||||
// LazyLock <RwLock <HashMap <SymbolU32, scm_bits>>>
|
LazyLock <RwLock <HashMap <String, scm_bits>>>
|
||||||
// );
|
);
|
||||||
|
|
||||||
// impl Vars {
|
impl Vars {
|
||||||
// pub const fn new () -> Vars {
|
pub const fn new () -> Vars {
|
||||||
// Vars (LazyLock::new (|| RwLock::new (HashMap::new ())))
|
Vars (LazyLock::new (|| RwLock::new (HashMap::new ())))
|
||||||
// }
|
}
|
||||||
|
|
||||||
// pub fn lookup (&self, name : SymbolU32) -> Option <scm_bits> {
|
pub fn lookup (&self, name : String) -> Option <scm_bits> {
|
||||||
// // let r = self.0.write ().unwrap ();
|
// let r = self.0.write ().unwrap ();
|
||||||
// // (*r).get (&name).map (|x| *x)
|
// (*r).get (&name).map (|x| *x)
|
||||||
// todo! ()
|
todo! ()
|
||||||
// }
|
}
|
||||||
|
|
||||||
// pub fn define (&self, name : SymbolU32, value : scm_bits) {
|
pub fn define (&self, name : String, value : scm_bits) {
|
||||||
// // let mut r = self.0.write ().unwrap ();
|
// let mut r = self.0.write ().unwrap ();
|
||||||
// // r.deref_mut ().insert (name, value);
|
// r.deref_mut ().insert (name, value);
|
||||||
// todo! ()
|
todo! ()
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
|
|
||||||
// static vars : Vars = Vars::new ();
|
static vars : Vars = Vars::new ();
|
||||||
|
|||||||
Reference in New Issue
Block a user