4 ms·
Primitive types such as booleans, int, floats, times etc. are passed by value. Reference counting is only used for heap allocated values and types that themsel
by bgongfu 8y ago
Primitive types such as booleans, int, floats, times etc. are passed by value.
Reference counting is only used for heap allocated values and types that themselves reference values, like pairs and tables.
https://github.com/basic-gongfu/cixl/blob/master/src/cixl/box.h https://github.com/basic-gongfu/cixl/blob/master/src/cixl/bo...