[Dlang-study] [lifetime] Few root decisions to take on RC classes

Marc Schütz schuetzm at gmx.net
Thu Nov 5 03:19:11 PST 2015


On Thursday, 5 November 2015 at 05:35:48 UTC, Jonathan M Davis 
wrote:
> So, it seems to me that we should at least explore the 
> possibility of making Throwable and its descendants @rc and see 
> if that will solve those problems for us. If it doesn't, then 
> we need to find a different solution for that - or maybe it's 
> an indicator that @rc as currently described isn't quite where 
> we should be going.

Just Throwable being @rc isn't enough. Exceptions contain 
additional data, at the least a message, which is often 
dynamically generated. Releasing the exception object itself 
would clean up only part of the garbage.


More information about the Dlang-study mailing list