print function
Dejan Lekic via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Thu Feb 4 05:46:46 PST 2016
On Thursday, 4 February 2016 at 00:23:07 UTC, ixid wrote:
> It would be nice to have a simple writeln that adds spaces
> automatically like Python's 'print' in std.stdio, perhaps
> called print.
There are many implementations of string interpolation in D (that
is what you want, basically). One of them is given in Phillipe's
excellent book about templates:
https://github.com/PhilippeSigaud/D-templates-tutorial/blob/master/D-templates-tutorial.md#simple-string-interpolation .
More information about the Digitalmars-d-learn
mailing list