D not considered memory safe
Dukc
ajieskola at gmail.com
Fri Jul 26 17:11:07 UTC 2024
Walter Bright kirjoitti 25.7.2024 klo 5.12:
> On 7/14/2024 6:34 AM, Dukc wrote:
>
> It wasn't just me. Quite a few people realized that the @trusted lambda
> approach did not work.
>
I'm not denying the trusted lambda trick has it's downsides, and it's
often better to just mark the whole calling function `@trusted`.
What I fail to see is why would marking the *called* function
`@trusted`, when it's API is actually unsafe, be any better than the
lambda trick? All the issues that make the lambda trick bad still apply,
only worse.
More information about the Digitalmars-d
mailing list