automatically heapify captured variables

This commit is contained in:
Moritz Gmeiner 2024-09-01 23:15:36 +02:00
commit 8e847847a6
5 changed files with 136 additions and 40 deletions

View file

@ -40,7 +40,7 @@ impl Runtime {
self.debug = debug;
}
pub fn debug(&self) -> bool {
pub fn is_debug(&self) -> bool {
self.debug
}
@ -76,9 +76,11 @@ impl Runtime {
*old_value = value;
Ok(())
} else {
Err(RuntimeError::GlobalNotDefined {
name: name.to_owned(),
})
panic!("Global not defined not caught by resolver");
// Err(RuntimeError::GlobalNotDefined {
// name: name.to_owned(),
// })
}
}
}