Safer casts

Janice Caron caron800 at googlemail.com
Tue May 13 02:17:26 PDT 2008


2008/5/13 Yigal Chripun <yigal100 at gmail.com>:
> <snip> Lots of stuff about inlining

Please don't confuse inlining with instantiation. This does not help
the discussion.

Whether or not a compiler inlines a function or not is a decision made
at the call site, however the function body must still exist elsewhere
in the object file, in case other functions in other modules need to
call it non-inlined.

If nothing calls it non-inlined, the linker should remove it when
building the executable.

This has nothing whatsoever to do with template instantiation.
Inlining may or may not happen with either functions or delegates, but
it has no bearing whatsoever on the "to template or not" discussion.



More information about the Digitalmars-d mailing list