@safe by default

Bastiaan Veelo Bastiaan at Veelo.net
Sat Jun 16 13:57:48 UTC 2018


On Saturday, 16 June 2018 at 13:52:37 UTC, Jacob Shtokolov wrote:
> Is it possible to introduce a new parameter/flag to the 
> compiler, to force all functions be @safe by default on a 
> per-module basis?
>
> For example:
>
> ```
> module mymodule;
>
> pragma(safe);

We already have that, and with even shorter syntax:

```
module mymodule;

@safe:

[...]
```

:-)


More information about the Digitalmars-d mailing list