mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
.tutorial
git-svn-id: svn://ultimatepp.org/upp/trunk@10557 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
639669d3de
commit
515af8ed37
9 changed files with 248 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue