Simplification of @trusted

Dukc ajieskola at gmail.com
Wed Jun 16 23:13:34 UTC 2021


On Wednesday, 16 June 2021 at 11:38:54 UTC, RazvanN wrote:
> ```d
> void foo() @safe
> {
>     @trusted
>     {
>         int[100] a = void;
>     }
>     ...
> }
> ```
>
> What do you think?

It raises the question, that what is this going to do?

```d
@trusted
{ // Is d @trusted?
   // Or is someDelegateProvider allowed to be @system?
   // Or both?
   void delegate(int) d = someDelegateProvider();
}
```




More information about the Digitalmars-d mailing list