mirror of
https://github.com/dlang/phobos.git
synced 2025-04-28 14:10:30 +03:00
![]() 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. |
||
---|---|---|
.. | ||
digest | ||
math | ||
test | ||
windows | ||
attributes.d | ||
cstring.d | ||
memory.d | ||
scopebuffer.d | ||
unicode_comp.d | ||
unicode_decomp.d | ||
unicode_grapheme.d | ||
unicode_norm.d | ||
unicode_tables.d |