mirror of
https://github.com/dlang/phobos.git
synced 2025-04-28 06:00:35 +03:00
sumtype: rename arithmetic evaluator example
This commit is contained in:
parent
d1dfd094f4
commit
1aa99f8e3f
1 changed files with 2 additions and 3 deletions
|
@ -108,7 +108,7 @@ version (D_BetterC) {} else
|
|||
assert(c.handle == "got a double");
|
||||
}
|
||||
|
||||
/** $(DIVID arithmetic-expression-evaluator, $(H3 Arithmetic expression evaluator))
|
||||
/** $(DIVID recursive-sumtypes, $(H3 Recursive SumTypes))
|
||||
*
|
||||
* This example makes use of the special placeholder type `This` to define a
|
||||
* [recursive data type](https://en.wikipedia.org/wiki/Recursive_data_type): an
|
||||
|
@ -256,8 +256,7 @@ private enum isInout(T) = is(T == inout);
|
|||
*
|
||||
* The special type `This` can be used as a placeholder to create
|
||||
* self-referential types, just like with `Algebraic`. See the
|
||||
* ["Arithmetic expression evaluator" example](#arithmetic-expression-evaluator) for
|
||||
* usage.
|
||||
* ["Recursive SumTypes" example](#recursive-sumtypes) for usage.
|
||||
*
|
||||
* A `SumType` is initialized by default to hold the `.init` value of its
|
||||
* first member type, just like a regular union. The version identifier
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue