GC/nogc status in docs

Per Nordlöw per.nordlow at gmail.com
Mon Jul 13 18:31:00 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?

Use compiler flag - dip1008 and only throw as

throw new SomeExceptionType(msgString)

to get @nogc-ness.


More information about the Digitalmars-d mailing list