[svn r136] MAJOR UNSTABLE UPDATE!!!

Initial commit after moving to Tango instead of Phobos.

Lots of bugfixes...

This build is not suitable for most things.
This commit is contained in:
Tomas Lindquist Olsen
2008-01-11 17:57:40 +01:00
parent bc08c6fcb1
commit b15b3484c8
524 changed files with 270705 additions and 175 deletions

View File

@@ -0,0 +1,17 @@
private import tango.stdc.stdio;
private import tango.io.Console;
/*******************************************************************************
Demonstrates buffered output. Console output (and Stdout etc) is
buffered, requiring a flush or newline to render on the console.
*******************************************************************************/
void main (char[][] args)
{
Cout ("how now ");
printf ("printf\n");
Cout ("brown cow").newline;
}

View File

@@ -0,0 +1,21 @@
/*******************************************************************************
Hello World using tango.io
This illustrates bare console output, with no fancy formatting.
Console I/O in Tango is UTF-8 across both linux and Win32. The
conversion between various unicode representations is handled
by higher level constructs, such as Stdout and Stderr
Note that Cerr is tied to the console error output, and Cin is
tied to the console input.
*******************************************************************************/
import tango.io.Console;
void main()
{
Cout ("hello, sweetheart \u263a").newline;
}

View File

@@ -0,0 +1,14 @@
/*******************************************************************************
Illustrates the basic console formatting. This is different than
the use of tango.io.Console, in that Stdout supports a variety of
printf-style formatting, and has unicode-conversion support
*******************************************************************************/
private import tango.io.Stdout;
void main()
{
Stdout ("hello, sweetheart \u263a").newline;
}