Issue with writefln ?

Dan murpsoft at hotmail.com
Wed Apr 4 16:35:45 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.

Wow!  I never thought of that.  (sincerely)   I'll be sure to do that in the future.



More information about the Digitalmars-d mailing list