@trusted attribute should be replaced with @trusted blocks

Timon Gehr timon.gehr at gmx.ch
Fri Jan 17 18:12:21 UTC 2020


On 17.01.20 18:16, jmh530 wrote:
> My interest in the piece was also that Rust doesn't have the 
> trusted/system dichotomy.

They really do, and the fact that many people do not understand this is 
a pretty solid argument against Rust's `unsafe` keyword. In Rust, the 
`unsafe` keyword is overloaded to have dual meanings. Functions with 
`unsafe` blocks are trusted functions. Functions annotated `unsafe` are 
system functions.


More information about the Digitalmars-d mailing list