3 ms·
Ownership doesn't exist in the C language per se, but it is still an important concept you have to reason about when manually managing memory. I think that's wh
by mtlmtlmtlmtl 4y ago
Ownership doesn't exist in the C language per se, but it is still an important concept you have to reason about when manually managing memory. I think that's what GP meant.
E.g if you add some object to a generic hash table as a key by pointer, you better treat that pointer as being owned by the hash table and not mutate it, or interesting stuff will happen.
- tmtvl 4y agoI mean sure, but we're not talking about C, we're talking about low-level languages, like IA32 assembly.
- mtlmtlmtlmtl 4y agoNo one uses "low level language" to mean only assembler anymore. Besides, you also have to reason about ownership in assembler. It's not something you can really get away from at any level of the stack.