gc_enabled()
function gc_enabled(): bool
Reports whether automatic cycle collection is enabled.
Parameters: none.
Returns: bool
Availability
- Compiled (AOT): supported by the Elephc code generator.
eval()(magician interpreter): supported through a declarative interpreter builtin (crates/elephc-magician/src/interpreter/builtins/core/gc_enabled.rs).
No examples yet. Check examples/ and showcases/ for usage patterns.
Internals
For how gc_enabled is implemented in the compiler, see the internals page.