132
|
1 /*******************************************************************************
|
|
2
|
|
3 Hello World using tango.io
|
|
4
|
|
5 This illustrates bare console output, with no fancy formatting.
|
|
6
|
|
7 Console I/O in Tango is UTF-8 across both linux and Win32. The
|
|
8 conversion between various unicode representations is handled
|
|
9 by higher level constructs, such as Stdout and Stderr
|
|
10
|
|
11 Note that Cerr is tied to the console error output, and Cin is
|
|
12 tied to the console input.
|
|
13
|
|
14 *******************************************************************************/
|
|
15
|
|
16 import tango.io.Console;
|
|
17
|
|
18 void main()
|
|
19 {
|
|
20 Cout ("hello, sweetheart \u263a").newline;
|
|
21 }
|