Does 'D' language supports 'C' like VLA?
Jacob Carlborg via Digitalmars-d
digitalmars-d at puremagic.com
Tue Apr 14 01:28:30 PDT 2015
On 2015-04-13 21:29, "Marc =?UTF-8?B?U2Now7x0eiI=?= <schuetzm at gmx.net>"
wrote:
> This is the best I can come up with currently. I think with a
> @forceinline attribute, it would be a lot better, assuming `alloca()` is
> usable inside an inlined method.
If I recall correctly "alloca" can be used as a default argument to
allocate on the caller stack [1]. If I'm correct and that's the case you
shouldn't need to use string mixins?
[1] http://forum.dlang.org/post/i1gql2$1k6o$1@digitalmars.com
--
/Jacob Carlborg
More information about the Digitalmars-d
mailing list