Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

root/trunk/example/text/formatindex.d

Revision 2465, 367 bytes (checked in by sean, 1 year ago)

IssueZilla? #1349 inspired me to fix up 'svn:eol-style' on our text files, since we've been a bit lax about it in the past few months. So this terrifyingly large commit sets this property and fixes newlines where appropriate. Nothing to see here. Move along.

  • Property svn:eol-style set to native
Line 
1 /**
2
3     Example that shows how the format specifiers can be used to index into
4     the argument list.
5
6     Put into public domain by Lars Ivar Igesund.
7
8 */
9
10 import tango.io.Stdout;
11
12 void main(){
13     Stdout.formatln("Many {1} can now be {0} around to make {2} easier,\n and {1} can also be repeated.",
14                     "switched", "arguments", "localization");
15 }
Note: See TracBrowser for help on using the browser.