.tutorial

git-svn-id: svn://ultimatepp.org/upp/trunk@10557 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2016-12-19 14:32:40 +00:00
parent 639669d3de
commit 515af8ed37
9 changed files with 248 additions and 5 deletions

View file

@ -20,11 +20,11 @@ void NullTutorial()
DUMP(d);
DUMP(e > d);
/// Null is the only instance of `Nuller` type. Assigning `Null` to
/// `Null` is the only instance of `Nuller` type. Assigning `Null` to
/// primitive types is achieved by cast operators of `Nuller`, other types can do it using
/// constructor from `Nuller`.
/// As a special case, if Value contains Null, it is convertible to any value type that can contain Null:
/// As a special case, if `Value` contains `Null`, it is convertible to any value type that can contain `Null`:
Value v = x; // x is int
e = v; // e is Date, but v is Null, so Null is assigned to e