4 ms·
Indeed, according to these "ref counting is gc" folks, free(void *) is a garbage collector, so C has always been garbage collected since 1970.
by WildUtah 10y ago
Indeed, according to these "ref counting is gc" folks, free(void *) is a garbage collector, so C has always been garbage collected since 1970.
- pjmlp 10y agoNo, because the language C doesn't provide any of the algorithms described here: http://gchandbook.org http://gchandbook.org Although, there are conservative GCs for C that replace malloc () and make fre () a nop, they cannot release all memory properly due to C semantics.
- sqeaky 10y agoI am pretty WildUtah was being sarcastic to be a more extreme version of my post. Or perhaps it was an attempt to expand the grey area.