destroy and @safe

Paul Backus snarwin at gmail.com
Tue Jun 21 18:28:14 UTC 2022


On Tuesday, 21 June 2022 at 17:33:46 UTC, H. S. Teoh wrote:
>
> Does the language allow you to declare a @system delegate 
> inside @safe code?

Yes. This compiles:

     void main() @safe
     {
         void delegate() @system dg = () @system { /* do scary 
stuff */ };
     }


More information about the Digitalmars-d-learn mailing list