root/trunk/example/text/formatindex.d
| Revision 2465, 367 bytes (checked in by sean, 1 year ago) | |
|---|---|
| |
| 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.












