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. //Get value of a hex digit.
uint hex(char c) uint hex(char c)
{ {
import std.ascii;
if(!std.ascii.isHexDigit(c)) if(!std.ascii.isHexDigit(c))
{ {
throw new Exception("Invalid color: " ~ value); 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:: .. note::
Other D compilers exist, such as Other D compilers exist, such as
`GDC <http://bitbucket.org/goshawk/gdc/wiki/Home>`_ and `GDC <http://gdcproject.org/>`_ and
`LDC <http://www.dsource.org/projects/ldc/>`_. Setting up with either one of `LDC <http://bitbucket.org/goshawk/gdc/wiki/Home>`_.
them should be similar to DMD, but they are not yet as stable as DMD.
^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^
Download and compile D:YAML Download and compile D:YAML
@ -77,7 +76,7 @@ into the file:
.. code-block:: d .. code-block:: d
import std.stdio; import std.stdio;
import dyaml.all; import yaml;
void main() 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. 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). Some of these might change in the future (especially !!map and !!set).
====================== ================ ====================== ====================
YAML tag D type YAML tag D type
====================== ================ ====================== ====================
!!null yaml.YAMLNull !!null yaml.YAMLNull
!!bool bool !!bool bool
!!int long !!int long
!!float real !!float real
!!binary ubyte[] !!binary ubyte[]
!!timestamp datetime.SysTime !!timestamp std.datetime.SysTime
!!map, !!omap, !!pairs Node.Pair[] !!map, !!omap, !!pairs yaml.Node.Pair[]
!!seq, !!set Node[] !!seq, !!set yaml.Node[]
!!str string !!str string
====================== ================ ====================== ====================