need help

BCS BCS_member at pathlink.com
Tue Apr 25 09:52:54 PDT 2006


In article <6uu0i3-m2i.ln1 at birke.kuehne.cn>, Thomas Kuehne says...
>Jarrett Billingsley schrieb am 2006-04-25:
>>  for ( int i = 1; i < args.length; i++ )
>>  {
>>   writef( args[i], ' ' );
>>  }
>
>That's usually not a good idea(unchecked format strings...), instead use:
>
>for ( int i = 1; i < args.length; i++ )
>{
>	writef("%s ", args[i]);
>}
>
>Thomas

This has bit me more than once. Maybe there should be a writef that won't do
formatting (writefn("%s", 123); prints "%s123")





More information about the Digitalmars-d-learn mailing list