Library standardization

Lars Noschinski lars-2008-1 at usenet.noschinski.de
Sat Apr 19 15:57:44 PDT 2008


* e-t172 <e-t172 at akegroup.org> [08-04-19 15:12]:
>- If I understand your statement correctly, it means the D compiler decides on 
>its own whether to inline a function or not. I don't think it's a good idea, 
>because it will lead to very strange problems and unexpected behaviour when 
>dealing with shared libraries. (actually this is not a .di issue, but a more 
>general one).

gcc does that, too (for C). And it does not cause problems, as there is
always a out-of-line version generated for all exported functions (i.e.
functions not declared static).



More information about the Digitalmars-d mailing list