Function inlining?

BCS none at anon.com
Sun May 23 14:40:44 PDT 2010


Hello RedZone,

> Hello,
> 
> I've dabbled in D here and there, and love it.  From what I can see,
> though, there's not exactly an "inline" keyword for function inlining.
> I know that the D compiler can do inlining by adding "-inline", but
> that doesn't really allow one to mark specific functions for inlining.
> Is there any way to achieve manual inlining of a function?

No. D by choice decided to omit that. The thought is that even in language 
that have it, inline is just a suggestion. D in effect just assumes the suggestion 
for everything and lets the compiler sort it out.

-- 
... <IXOYE><





More information about the Digitalmars-d-learn mailing list