On Sunday, 9 February 2014 at 13:08:45 UTC, Dicebot wrote:
On Sunday, 9 February 2014 at 12:57:32 UTC, Jakob Ovrum wrote:
The implementation of `fun` can just forward `sneaky` onto another function. Cue some simple inlining and there is no bloat (at runtime, anyhow).

I am not speaking about what "sufficiently clever compiler" can do but what current frontend does. New aliased identifier == new instance. Always.

Yes, but a new template instance is not necessarily a problem at runtime or for the executable size. The contents of the template instance is all that matters. When the content is a tiny inlinable function, there is no bloat.

Reply via email to