D Documentation [ Log in ]
Introduction
There was nothing here so :-

Tango is an alternative to Phobos ,the library for D noted as std.whatever.

It is a separate download and it seems it is written over the dmd library files and is quite different in use

import tango.io.Stdout
        Stdout ("hello ") ("world").newline;
        Stdout.format ("hello {}", "world").newline;
        Stdout.formatln ("hello {}", "world");
 

        Stdout ("hello");                       => hello
        Stdout (1);                             => 1
        Stdout (3.14);                          => 3.14
        Stdout ('b');                           => b
        Stdout (1, 2, 3);                       => 1, 2, 3
        Stdout ("abc", 1, 2, 3);                => abc, 1, 2, 3
        Stdout ("abc", 1, 2) ("foo");           => abc, 1, 2foo
        Stdout ("abc") ("def") (3.14);          => abcdef3.14

        Stdout.format ("abc {}", 1);            => abc 1
        Stdout.format ("abc {}:{}", 1, 2);      => abc 1:2
        Stdout.format ("abc {1}:{0}", 1, 2);    => abc 2:1
        Stdout.format ("abc ", 1);              => abc

as opposed to the standard library :-

import std.stdio;

int main(char[][] args)
{
  writef("Hello world!");
  return 0;
}




Whereas the Phobos library is called std.whatever
Tango is tango.whatever

I would like to be able to use them at the same time as there are example programs in both but if you use tango ,examples in phobos (std) wont compile. Some kind soul might tell me here.
PHP docwiki written by Markus Dangl. Best viewed with Mozilla Firefox.
This is the inofficial wiki for documenting the D programming language.
- Profiler -
Time for site generation: 0.0425 s