mirror of
https://github.com/Noratrieb/dilaria.git
synced 2026-01-16 02:15:01 +01:00
do functions work finally maybe
This commit is contained in:
parent
ebd3dd8d82
commit
237fb34d97
12 changed files with 132 additions and 86 deletions
17
src/gc.rs
17
src/gc.rs
|
|
@ -2,14 +2,17 @@
|
|||
//!
|
||||
//! The structure of the GC might change, but for now it's simply a `LinkedList` of `Object`s.
|
||||
|
||||
use crate::vm::Value;
|
||||
use crate::{HashMap, HashSet};
|
||||
use std::{
|
||||
collections::LinkedList,
|
||||
fmt::{Debug, Formatter},
|
||||
hash::{Hash, Hasher},
|
||||
ops::Deref,
|
||||
ptr::NonNull,
|
||||
};
|
||||
|
||||
use dbg_pls::DebugPls;
|
||||
use std::collections::LinkedList;
|
||||
use std::fmt::{Debug, Formatter};
|
||||
use std::hash::{Hash, Hasher};
|
||||
use std::ops::Deref;
|
||||
use std::ptr::NonNull;
|
||||
|
||||
use crate::{vm::Value, HashMap, HashSet};
|
||||
|
||||
/// A pointer to a garbage collected value. This pointer *must* always be valid, and a value
|
||||
/// is only allowed to be freed once no Gc is pointing at it anymore. This is achieved through
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue