@system blocks and safer @trusted (ST) functions

Walter Bright newshound2 at digitalmars.com
Mon Jul 26 17:36:19 UTC 2021


On 7/26/2021 1:21 AM, ShadoLight wrote:
> On Sunday, 25 July 2021 at 12:01:01 UTC, Walter Bright wrote:
>> The user could silence this error by adding an empty @system block:
>>
>>     @system { }
> 
> ...or rather simply marked as a @safe function then?


It's still possible that the programmer wants to keep it @trusted because it's 
doing things not catchable by the safety checks.


More information about the Digitalmars-d mailing list