phobos/std/internal/test
Paul Backus d1dfd094f4 sumtype: add overload-set matching example
This is a useful technique, and non-obvious enough that other D
community members were surprised when I showed it to them.

The unusual formatting and code layout used here achieves the following
goals:

1. Have this example appear below "Basic usage".
2. Have the overload set appear as it would at module level.
3. Have as much of the example code unit-tested as possible.

Goal (2), in particular, rules out the use of a "wrapper" struct to
create an overload set of static methods, which is the technique that's
normally used to include an overload set in a unittest block.
2024-05-31 11:22:43 -04:00
..
dummyrange.d Narrow imports of std.math in the rest of phobos. 2021-04-21 03:00:57 +02:00
range.d Work around bugzilla issue 24415 - only doesn't work with elements with a copy constructor. 2024-04-09 09:08:12 +02:00
sumtype_example_overloads.d sumtype: add overload-set matching example 2024-05-31 11:22:43 -04:00
uda.d Enable getSymbolsByUDA to retrieve private members. 2015-11-28 07:14:47 -05:00