toString refactor in druntime

ketmar via Digitalmars-d digitalmars-d at puremagic.com
Mon Oct 27 13:24:45 PDT 2014


On Mon, 27 Oct 2014 15:20:24 -0400
Steven Schveighoffer via Digitalmars-d <digitalmars-d at puremagic.com>
wrote:

> Might I suggest a helper that takes a sink and a variadic list of 
> strings, and outputs those strings to the sink in order.
hehe. simple CTFE writef seems to be a perfect fit for druntime. i
implemented very "barebone", yet powerful PoC in ~18Kb of code (~500
lines). it can be made even smaller if necessary. then one can use
something like `writef!"<%s:%5s>"(sink, msg, code);` and so on.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20141027/670c8b37/attachment.sig>


More information about the Digitalmars-d mailing list