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

Kagamin spam at here.lot
Fri Sep 16 11:33:13 UTC 2022


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.


More information about the Digitalmars-d mailing list