Formatting error for Lars

Ty Tower tytower at hotmail.com.au
Thu Mar 20 19:09:23 PDT 2008


You responded to one of my annoyances posts re birds on the roof .
You wanted a page number for that example 

Page 131 and 132 deal with it in your book  
Neither :C  nor :G seem to work 
:G is the default and when I use {} its supposed to insert the 100
I tried putting in the :G too


module test;
import tango.io.Stdout;
import tango.text.locale.Locale;
 
 void main(){
 Locale locale = new Locale;
 Stdout("I have lost {:G} of my birds",20).newline;
 Stdout.formatln("I have {:C} birds on the roof",100);
}



[tytower at localhost tango]$  mystuff/test
I have lost {} of my birds, 20
I have {unknown format 'C'} birds on the roof




More information about the Digitalmars-d mailing list