Proposal: Exceptions and @nogc

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Sun Apr 2 19:17:05 PDT 2017


On 4/2/2017 7:02 PM, crimaniak wrote:
> On Sunday, 2 April 2017 at 05:16:23 UTC, Walter Bright wrote:
>> Using a ref counted solution brings with it a host of problems because
>> the compiler is not set up to ref count class object references, nor
>> is any existing code set up to deal with that.
> Please describe in more detail the problems in this part. If you are still
> planning to introduce RC-based objects into the language, then it is not obvious
> that the dedicated allocators in the runtime are better than using RC-based
> exception objects.


RC objects in D will be done with structs, not classes, due to this problem.


More information about the Digitalmars-d mailing list