2 ms·
> If you could even just pass an array of objects to be collected or something If you have a bunch of objects in an array that you have a reference to such tha
by munificent 2y ago
> If you could even just pass an array of objects to be collected or something
If you have a bunch of objects in an array that you have a reference to such that you can pass it, then, by definition, those objects are not garbage, since they're still accessible to the program.
- smaudet 2y agoYes. Use a WriteOnlyArray or whatever, Semantics aside though... There should be some middle ground between RAII and invoking Dispose/delete and full blown automatic GC.