Trying to use Mir ion, its a perfect example of the failure of D's attribute system
Adam D Ruppe
destructionator at gmail.com
Thu Jan 19 13:14:35 UTC 2023
On Thursday, 19 January 2023 at 02:10:14 UTC, Walter Bright wrote:
> You can pretty much not use any attributes if you use none
> (including not using @safe).
If a function takes a delegate, there is no way (outside of
changing the type, e.g., templating on the type of the delegate)
to indicate conditional attributes.
So if someone in a library wrote
void process(void delegate() userData) @nogc {}
it is going to force userData to be nogc regardless of their own
desires.
More information about the Digitalmars-d
mailing list