Library standardization

Janice Caron caron800 at googlemail.com
Sat Apr 19 06:22:46 PDT 2008


On 19/04/2008, e-t172 <e-t172 at akegroup.org> wrote:
>  If I understand your statement correctly, it means the D compiler decides
> on its own whether to inline a function or not.

That is correct. The rationale is that the compiler is able to make
better optimisation decisions than the programmer.


> 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.

It's an optimisation decision, so it should make no difference
whatsoever, except to make your code run faster or slower.



More information about the Digitalmars-d mailing list