[Dlang-study] [lifetime] Few root decisions to take on RC classes
Dmitry Olshansky
dmitry.olsh at gmail.com
Thu Nov 5 05:22:10 PST 2015
>
> 5 нояб. 2015 г., в 16:12, destructionator at gmail.com написал(а):
>
>> On Thu, Nov 05, 2015 at 11:19:11AM +0000, Marc Schütz wrote:
>> Just Throwable being @rc isn't enough. Exceptions contain additional data,
>> at the least a message, which is often dynamically
> Instead, we should be making exception subclasses that hold the data
> you'd use to generate that string. Those would be user-defined and
> managed however the data themselves would be... so the Exception
> destructor is responsible for destroying them if structs or other
> RC items, or leave them behind for the GC, or whatever.
FYI
https://github.com/D-Programming-Language/druntime/pull/1411
I believe it's one breaking change that just must happen.
>
> _______________________________________________
> Dlang-study mailing list
> Dlang-study at puremagic.com
> http://lists.puremagic.com/cgi-bin/mailman/listinfo/dlang-study
More information about the Dlang-study
mailing list