First Impressions!
Dukc
ajieskola at gmail.com
Thu Nov 30 14:01:57 UTC 2017
On Tuesday, 28 November 2017 at 16:14:52 UTC, Jack Stouffer wrote:
> you can apply attributes to your whole project by adding them
> to main
>
> void main(string[] args) @safe {}
>
> Although this isn't recommended, as almost no program can be
> completely safe.
In fact I believe it is. When you have something unsafe you can
manually wrap it with @trusted. Same goes with nothrow, since you
can catch everything thrown.
But putting @nogc to main is of course not recommended except in
special cases, and pure is competely out of question.
More information about the Digitalmars-d
mailing list