4 ms·
The memory management is type-bound: type Foo = object -> no GC, stack object, can use destructors type Foo = ptr object -> manual memory management type Foo
by mratsim 3y ago
The memory management is type-bound:
type Foo = object -> no GC, stack object, can use destructors
type Foo = ptr object -> manual memory management
type Foo = ref object -> "GC", refcounting to be exact.