← All docs

gc_enabled()

Reports whether automatic cycle collection is enabled.

gc_enabled()

function gc_enabled(): bool

Reports whether automatic cycle collection is enabled.

Parameters: none.

Returns: bool

Availability

No examples yet. Check examples/ and showcases/ for usage patterns.

Internals

For how gc_enabled is implemented in the compiler, see the internals page.