To help LDC/GDC

Tobias Pankrath tobias at pankrath.net
Tue Apr 9 06:22:18 PDT 2013


>
>    struct S;
>    int f(S* p) pure;
>    S* n();
>
>    int g = 0;
> 
>    int main() {
>       S* s = n();
>       f(s);
>       return g;
>    }
>
> Is main() guaranteed to return '0'?
> 
> artur

Dunno, how this makes an example if you use at least 2, probably 
3 non pure functions (main, n, constructor of S).


More information about the Digitalmars-d mailing list