Phobos for Review: std.buffer.scopebuffer
Jakob Ovrum
jakobovrum at gmail.com
Sun Feb 9 05:11:56 PST 2014
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.
More information about the Digitalmars-d
mailing list