what are the rules for @nogc and @safe attributes inference?

ikod geller.garry at gmail.com
Thu Nov 15 21:00:48 UTC 2018


Hello,

what are the rules for @nogc inference? It looks like sometimes 
compiler can infer @nogc, but not in this simplest case:

int x()
{
     return 1;
}
void main() @nogc
{
     x();
}

Thanks!


More information about the Digitalmars-d-learn mailing list