C++ frequently questioned answers

Bruce Adams tortoise_74 at yeah.who.co.uk
Sat Oct 27 01:03:28 PDT 2007


Nathan Reed Wrote:

> Bruce Adams wrote:
> >Isn't inlining available via mixins?
> 
> Isn't inlining available via the compiler switch -inline (for DMD)?
> 
> Thanks,
> Nathan Reed

Good point. I'm a gcc/gdc person by preference. But it is an optimisation and as such its not a bad idea to leave it as a compiler option. For a start you can inline differently from module to module that way. Then again a mixin would achieve the same localisation of optimisation in a compilation independent way.

Regards,

Bruce.



More information about the Digitalmars-d mailing list