What to do when you want to add attributes to your class functions?

RazvanN razvan.nitu1305 at gmail.com
Fri Sep 16 11:36:58 UTC 2022


On Friday, 16 September 2022 at 11:33:13 UTC, Kagamin wrote:
> On Friday, 16 September 2022 at 09:25:58 UTC, RazvanN wrote:
>> Now, the entire point of this post is to ask what should we do 
>> in the case of: https://github.com/dlang/dmd/pull/14432. The 
>> story is: the methods of core.sync.condition can be made 
>> @nogc; the only reason why we did not do that is because we 
>> would throw some SyncErrors (which are allocated with the gc)
>
> Are those really `Error`s? Then throw one statically allocated 
> instance with generic message.

That is not the problem. That has been taken care of. The issue 
is that users of Condition now have to abide by the rules of nogc.


More information about the Digitalmars-d mailing list