On 02/11/2011 09:33 AM, Jim wrote:
Regardless, I would _hope_ that the compiler would be smart enough to make
> intelligent choices about inlining. That's probably one of those areas that
can
> always be improved however.
I also think that this decision should be left to the compiler.
The inline keyword was deemed useful for the same reason that symbols had to be
declared before their use (causing the C/C++ header hell) -- it's easier to
implement such a compiler.
Agreed; but what about having the compiler tell you, on demand, "func 'f' at
line #l in module 'm' was not inlined" ?
Denis
--
_________________
vita es estrany
spir.wikidot.com