C

Reference counting

Në shqip: Numërimi i referencave

ShpjegimiSQ

Te numërimi i referencave, çdo objekt mban një numër që tregon sa e përdorin; kur bëhet zero, lirohet. E përdorin shared_ptr, Rc-ja e Rust-it, Swift-i dhe CPython-i nga brenda.

EnglishEN

With reference counting, every object keeps a number saying how many use it; when it hits zero, it's freed. shared_ptr, Rust's Rc, Swift and CPython use it internally.

Si ta mendosh

Si drita e dhomës së përbashkët: e fik i fundit që del.

Lexoje në anglisht

Like the shared room's light: the last one out switches it off.

Terma të lidhur