Creates a new module registry with the standard library pre-loaded. This initializes the registry with all the standard modules and items defined in the standard library.
(env: &Environment<'heap>)
| 71 | /// This initializes the registry with all the standard modules and items |
| 72 | /// defined in the standard library. |
| 73 | pub fn new(env: &Environment<'heap>) -> Self { |
| 74 | let this = Self::empty(env.heap); |
| 75 | |
| 76 | let mut std = StandardLibrary::new(env, &this); |
| 77 | std.register(); |
| 78 | |
| 79 | this |
| 80 | } |
| 81 | |
| 82 | /// Interns a new module into the registry. |
| 83 | /// |