ugly and/or useless features in the language.

Ola Fosheim Grostad ola.fosheim.grostad at gmail.com
Sun May 23 13:08:14 UTC 2021


On Sunday, 23 May 2021 at 12:08:31 UTC, Alain De Vos wrote:
> It is sufficient to have a bit complex gui and database access 
> and the @safe annotation can nowhere be used in your program.
> The compiler misses scopes checks without.

I think you are supposed to use @trusted to tell the compiler 
that the code is safe if you are certain that calling the code 
cannot create issues.

I dont use @safe myself, maybe someone else have better advice.






More information about the Digitalmars-d-learn mailing list