Issue with writefln ?

0ffh spam at frankhirsch.net
Wed Apr 4 15:43:00 PDT 2007


BCS wrote:
> unless it is being used from a format string, all char[] are assumed to 
> be format strings. Try this:
> 
> writelnf("<%s>",s);
> 
> In general it is bad practice to have a non literal string used in 
> writef/writelnf unless you only reference it by way of a format string.

Works and is soundly explained! Cheers to you, good sir! :)




More information about the Digitalmars-d mailing list