toString refactor in druntime

Martin Nowak via Digitalmars-d digitalmars-d at puremagic.com
Fri Oct 31 04:25:50 PDT 2014


On Tuesday, 28 October 2014 at 21:32:14 UTC, ketmar via 
Digitalmars-d wrote:
> On Tue, 28 Oct 2014 08:37:43 -0400
>> I think a few simple functions can suffice for druntime's 
>> purposes. We don't need a kitchen sink function (pun intended).
> ah, those famous last words... ;-) from my observations it's 
> enough to
> implement '%[+-]width[.maxlen]s' and the same for '%x'. i also 
> added
> codes to skip arguments and to print all what's left ('%*'). 
> i'm sure
> that it can be done in <10KB, and it will be very handy to have.
> druntime doesn't do alot of printing and string conversions 
> anyway. and
> phobos is already ridden with templates and CTFE.

https://github.com/D-Programming-Language/druntime/pull/662


More information about the Digitalmars-d mailing list