pointers - F# - Do ref cells need to be deleted explicitly? -
are ref cells pointers in sense reference data on heap, , need explicitly deleted? examples i've seen online don't have explicit delete calls.
are ref cells pointers in sense reference data on heap, , need explicitly deleted?
no. f# runs on clr, manages memory automatically via garbage collector. memory resources, ones use heap, not need explicit cleanup developer, , in fact, there no mechanism can explicitly delete specific object.
instead, reference cell become eligible garbage collection when there no more references it. sometime after that, cleaned automatically gc.
this true types generate in f#, well, such records, discriminated unions, classes, etc.
Comments
Post a Comment