@system blocks and safer @trusted (ST) functions

ag0aep6g anonymous at example.com
Mon Jul 26 09:34:44 UTC 2021


On 26.07.21 05:46, Timon Gehr wrote:
> On 26.07.21 02:21, ag0aep6g wrote:
[...]
>> The language doesn't have @trusted blocks. @trusted function literals 
>> (lambdas) are still functions. Everything the documentation says about 
>> @trusted functions applies to function literals.
> 
> The documentation no longer says much about that.
> https://github.com/dlang/dlang.org/pull/2453#commitcomment-53328593
> 
> Probably we should fix that soon.

That's just memory-safe-d.dd, which is an odd page that should be merged 
with function.dd. function.dd still says that @trusted functions must 
have safe interfaces.

https://dlang.org/spec/function.html#trusted-functions


More information about the Digitalmars-d mailing list