GC/nogc status in docs

Paul Backus snarwin at gmail.com
Mon Jul 13 19:16:57 UTC 2020


On Monday, 13 July 2020 at 18:14:56 UTC, Ogi wrote:
> On Thursday, 9 July 2020 at 12:55:45 UTC, aberba wrote:
>> Has there been any consideration on tagging Phobos function as 
>> either GC or no-GC depending on how they behave for general 
>> awareness when reading the docs?
>>
>> I'm thinking it could be useful to know what you get.
>
> I wonder how much of Phobos is not @nogc simply because of the 
> use of exceptions. Walter had some ideas that would allow 
> exceptions to work without GC. Is there any progress?

You can enable @nogc exceptions with -preview=dip1008. Last I 
heard there were some issues with the implementation, but that 
was a while ago, so things may have changed.


More information about the Digitalmars-d mailing list