#Quick question: Will pointer capture be better here or not and why?
1 messages · Page 1 of 1 (latest)
depends what self.particles and .deinit is
if its an ?ArrayList or similar, value copy might not work
capturing without a pointer makes a const copy, but usually deinit functions require mutable pointers
@odd dune preety sure the second one would not compile youd still have to do self.particles = null instead of p = null, and what Matthis said ^
ah okay
its a struct of my own so yeah