Jim Wrote:

> bearophile Wrote:
> > The LLVM back-end of LDC is able to inline much more, but even here a list 
> > of inlined/not inlined functions helps. D is almost a system language, so 
> > sometimes you need to go lower level (or you just need a program that's not 
> > too much slow).
> 
> 
> If forced inlining is to be supported I think it would be good idea to also 
> let the _caller_ decide whether to inline a function. The compiler could 
> simply find the function definition, perhaps parameterize it, and then insert 
> it. Should it not be able to inline almost any function if asked to?


Just had another idea..
A function would know statically whether it has been inlined or not. If inlined 
it could choose to propagate this attribute to any of its own callees. Not sure 
it would be useful though, just thinking aloud..

Reply via email to