phobos/std/internal
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
..
digest Annotate std/internal/digest/sha_SSSE3.d to please dlang/dmd#12520 2021-05-17 23:00:24 +02:00
math std.bigint: remove subSimple 2024-04-19 23:54:27 +02:00
test sumtype: add overload-set matching example 2024-05-31 11:22:43 -04:00
windows Remove usages of 'in' on Windows C bindings 2022-10-14 13:32:48 +02:00
attributes.d Add @betterC extraction testsuite 2018-08-21 17:19:21 +02:00
cstring.d Add explicit return to inout functions 2021-11-16 23:22:33 +00:00
memory.d add return scope to realloc 2021-06-08 09:32:30 +00:00
scopebuffer.d Merge pull request #6764 from rracariu/master 2018-11-21 00:05:11 +01:00
unicode_comp.d Remove explicit hex string casts 2024-03-19 23:48:15 +01:00
unicode_decomp.d Remove explicit hex string casts 2024-03-19 23:48:15 +01:00
unicode_grapheme.d Remove explicit hex string casts 2024-03-19 23:48:15 +01:00
unicode_norm.d Remove explicit hex string casts 2024-03-19 23:48:15 +01:00
unicode_tables.d Remove explicit hex string casts 2024-03-19 23:48:15 +01:00