From ed91e50deb4d8a2dba80f84f769231a1c166edcd Mon Sep 17 00:00:00 2001 From: Paul Backus Date: Thu, 30 May 2024 23:57:54 -0400 Subject: [PATCH] sumtype: add list of examples to module doc This will hopefully make it easier for readers to notice that all of these examples exist. --- std/sumtype.d | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/std/sumtype.d b/std/sumtype.d index d5f567dc0..69c2a49dd 100644 --- a/std/sumtype.d +++ b/std/sumtype.d @@ -11,6 +11,15 @@ include: * No dependency on runtime type information (`TypeInfo`). * Compatibility with BetterC. +$(H3 List of examples) + +* [Basic usage](#basic-usage) +* [Matching with an overload set](#matching-with-an-overload-set) +* [Recursive SumTypes](#recursive-sumtypes) +* [Memory corruption](#memory-corruption) (why assignment can be `@system`) +* [Avoiding unintentional matches](#avoiding-unintentional-matches) +* [Multiple dispatch](#multiple-dispatch) + License: Boost License 1.0 Authors: Paul Backus Source: $(PHOBOSSRC std/sumtype.d)