Updated tutorials.

This commit is contained in:
Ferdinand Majerech 2014-08-01 02:46:32 +02:00
parent ca100e5a30
commit a4b4a42c55
3 changed files with 10 additions and 10 deletions

View file

@ -78,6 +78,7 @@ CSS-like format, RRGGBB, or from a mapping, where we use the following format:
//Get value of a hex digit.
uint hex(char c)
{
import std.ascii;
if(!std.ascii.isHexDigit(c))
{
throw new Exception("Invalid color: " ~ value);

View file

@ -24,9 +24,8 @@ Download the version of DMD for your operating system and install it.
.. note::
Other D compilers exist, such as
`GDC <http://bitbucket.org/goshawk/gdc/wiki/Home>`_ and
`LDC <http://www.dsource.org/projects/ldc/>`_. Setting up with either one of
them should be similar to DMD, but they are not yet as stable as DMD.
`GDC <http://gdcproject.org/>`_ and
`LDC <http://bitbucket.org/goshawk/gdc/wiki/Home>`_.
^^^^^^^^^^^^^^^^^^^^^^^^^^^
Download and compile D:YAML
@ -77,7 +76,7 @@ into the file:
.. code-block:: d
import std.stdio;
import dyaml.all;
import yaml;
void main()
{

View file

@ -257,16 +257,16 @@ Implicit tags:
This table shows D types stored in *yaml.Node* default YAML tags are converted to.
Some of these might change in the future (especially !!map and !!set).
====================== ================
====================== ====================
YAML tag D type
====================== ================
====================== ====================
!!null yaml.YAMLNull
!!bool bool
!!int long
!!float real
!!binary ubyte[]
!!timestamp datetime.SysTime
!!map, !!omap, !!pairs Node.Pair[]
!!seq, !!set Node[]
!!timestamp std.datetime.SysTime
!!map, !!omap, !!pairs yaml.Node.Pair[]
!!seq, !!set yaml.Node[]
!!str string
====================== ================
====================== ====================