21.10.2013 14:30, Manu пишет:No hacks needed. See `unstd.c.string` module from previous post:
System interface functions that pass zero-terminated strings through to
the OS are the primary offender, needless garbage, those should be on
the stack.
I like to use alloca too where it's appropriate. I'd definitely like if
D had a variable-sized static array syntax for pretty-ing alloca.
I thought about something similar using alloca via a mixin template, but
that feels really hackey!
http://forum.dlang.org/thread/lqdktyndevxfcewgthcj@forum.dlang.org?page=2#post-l42evp:241ok7:241:40digitalmars.com