Poll on improved format strings.

renoX renosky at free.fr
Wed Mar 7 06:35:01 PST 2007


Don Clugston Wrote:
> renoX wrote:
> > $somevar or %somevar without {...}, I don't know, it's shorter, sure but less readable I think.
> 
> I agree. You'd also need to worry about "%f{abc}" -- is this a local 
> variable called 'f', followed by the text "{abc}", or is it printing a 
> floating point number called abc ?

Good remark.
One think which is a problem with the syntax of apprend {var} after printf format string is that it doesn't work for the equivalent of writef("%*d",width,var) maybe %*{width}{var}?

renoX




More information about the Digitalmars-d mailing list