Phobos for Review: std.buffer.scopebuffer
Marco Leise
Marco.Leise at gmx.de
Sun Feb 16 18:52:27 PST 2014
Am Sun, 09 Feb 2014 12:36:36 +0000
schrieb "Dicebot" <public at dicebot.lv>:
> On Sunday, 9 February 2014 at 04:14:05 UTC, Marco Leise wrote:
> > It depends on what syntax you expect. I solved it this way:
> >
> > void fun(alias length)(void* sneaky = alloca(length));
> >
> > void foo()
> > {
> > size_t myLength = 42;
> > fun!myLength();
> > }
>
> Huge template bloat in current frontend state - new instance of
> `fun` for every single new function it is used in.
Thanks for the hint! I'll keep that in mind when the function
becomes larger.
--
Marco
More information about the Digitalmars-d
mailing list