On Thursday, 27 February 2020 at 09:45:06 UTC, Rainer Schuetze
wrote:
On 27/02/2020 01:20, Walter Bright wrote:
On 2/26/2020 3:13 AM, Petar Kirov [ZombineDev] wrote:
In all other languages with string interpolation that I'm
familiar with, `a` is not passed to the `i` parameter.
All rely on a garbage collected string being generated as an
intermediate variable.
The string buffer could also be stack allocated or manually
managed with malloc/free by the string interpolation type.
Don't forget LDC does GC to stack optimisations. There ought to
be no need to do anything manually if you care about perf.