| | 15 | |
|---|
| | 16 | |
|---|
| | 17 | |
|---|
| | 18 | |
|---|
| | 19 | |
|---|
| | 20 | "Fundamentals": //(20) |
|---|
| | 21 | "TutorialFundamentals"; |
|---|
| | 22 | |
|---|
| | 23 | "Intermediate": //(14) |
|---|
| | 24 | "TutorialIntermediate"; |
|---|
| | 25 | |
|---|
| | 26 | "Advanced": //(8) |
|---|
| | 27 | "TutorialAdvanced"; |
|---|
| | 28 | |
|---|
| | 29 | "Keywords": //(8) |
|---|
| | 30 | "KeywordsCategory"; |
|---|
| | 31 | |
|---|
| | 32 | "Arrays": //(5) |
|---|
| | 33 | "ArraysCategory"; |
|---|
| | 34 | - 3 examples added to 2 |
|---|
| | 35 | "Common Errors": //(3) |
|---|
| | 36 | "CommonErrorsCategory"; |
|---|
| | 37 | |
|---|
| | 38 | "Delegates": //(8) |
|---|
| | 39 | "DelegateCategory"; |
|---|
| | 40 | |
|---|
| | 41 | "Foreach": //(6) |
|---|
| | 42 | "ForeachCategory"; |
|---|
| | 43 | |
|---|
| | 44 | "Function Literals": //(2) |
|---|
| | 45 | "FunctionLiteralsCategory"; |
|---|
| | 46 | |
|---|
| | 47 | "Handling errors", "Handling Errors": //(2) |
|---|
| | 48 | "HandlingErrorsCategory"; |
|---|
| | 49 | |
|---|
| | 50 | "Operator Overloading": //(4) |
|---|
| | 51 | "OperatorOverloadingCategory"; |
|---|
| | 52 | |
|---|
| | 53 | "switch / case", "Switch / Case": //(3) |
|---|
| | 54 | "SwitchCaseCategory"; |
|---|
| | 55 | |
|---|
| | 56 | "Templates": //(10) |
|---|
| | 57 | "TemplatesCategory"; |
|---|
| | 58 | |
|---|
| | 59 | "Versioning": //(3) |
|---|
| | 60 | "VersioningCategory"; |
|---|
| | 61 | |
|---|
| | 62 | "DFL": //(7) |
|---|
| | 63 | "DflCategory"; |
|---|
| | 64 | |
|---|
| | 65 | "Mango": //(1) |
|---|
| | 66 | "MangoCategory"; |
|---|
| | 67 | |
|---|
| | 68 | "Standard Library": //(22) |
|---|
| | 69 | "StandardLibraryCategory"; |
|---|
| | 70 | |
|---|
| | 71 | "Windows GUI": //(3) |
|---|
| | 72 | "WindowsGuiCategory"; |
|---|
| | 73 | |
|---|
| | 74 | |
|---|
| | 75 | |
|---|
| | 76 | |
|---|
| | 77 | "Fundamentals": |
|---|
| | 78 | "It Compiles": "ItCompilesExample"; |
|---|
| | 79 | "Do Something": "DoSomethingExample"; |
|---|
| | 80 | "Initializing Variables": "InitializingVariablesExample"; |
|---|
| | 81 | "Data Types": "DataTypesExample"; |
|---|
| | 82 | "If/Else": "IfElseExample"; |
|---|
| | 83 | "The \"for\" Loop": "ForLoopExample"; |
|---|
| | 84 | "Variables": "VariablesExample"; |
|---|
| | 85 | "Expressions": "ExpressionsExample"; |
|---|
| | 86 | "Comments": "CommentsExample"; |
|---|
| | 87 | - just date |
|---|
| | 88 | "String Comparison Operators": "StringComparisonOperatorsExample"; |
|---|
| | 89 | "Wait": "WaitExample"; |
|---|
| | 90 | "Get a number from the user (uses scanf)": "ScanfExample"; |
|---|
| | 91 | "Quadratic Equation (getting input and doing calculations)": "Quadratic EquationExample"; |
|---|
| | 92 | "Function": "FunctionExample"; |
|---|
| | 93 | "Nested Functions": "NestedFunctionsExample"; |
|---|
| | 94 | "Struct": "StructExample"; |
|---|
| | 95 | "Struct Initialization": "StructInitializationExample"; |
|---|
| | 96 | "Class": "ClassExample"; |
|---|
| | 97 | - just date |
|---|
| | 98 | "Appending": "AppendingExample"; |
|---|
| | 99 | - just date |
|---|
| | 100 | "Assertions": "AssertionsExample"; |
|---|
| | 101 | - just date |
|---|
| | 102 | "Unittests": "UnittestsExample"; |
|---|
| | 103 | "Getch/Getchar": "GetchGetcharExample"; |
|---|
| | 104 | default: writefln("Unknown example: %s", e); assert(0); |
|---|
| | 105 | |
|---|
| | 106 | "Intermediate": |
|---|
| | 107 | "Using more than one function": "UsingMultipleExamples"; |
|---|
| | 108 | "Character Initial Values": "CharacterInitialValuesExample"; |
|---|
| | 109 | - just date |
|---|
| | 110 | "Module usage": "ModuleUsageExample"; |
|---|
| | 111 | "Asm code for splitting ubyte into low and high nibbles": "SplittingUbyteWithAsmExample"; |
|---|
| | 112 | "Asm code for finding first occurrence of letter in string": "FindingFirstLetterWithAsmExample"; |
|---|
| | 113 | "Towers of Hanoi": "TowersOfHanoiExample"; |
|---|
| | 114 | "Factorial": "FactorialExample"; |
|---|
| | 115 | "Escape Sequences": "EscapeSequencesExample"; |
|---|
| | 116 | "Comments (Reprise)": "CommentsExampleTwo"; |
|---|
| | 117 | - just date |
|---|
| | 118 | "Nested Comments": "NestedCommentsExample"; |
|---|
| | 119 | "String Literals": "StringLiteralsExample"; |
|---|
| | 120 | "String and Number Literals": "StringAndNumberLiteralsExample"; |
|---|
| | 121 | "Runtime Type Information (RTTI)": "RuntimeTypeInformationExample"; |
|---|
| | 122 | "Statistics": "StatisticsExample"; |
|---|
| | 123 | |
|---|
| | 124 | "Advanced": |
|---|
| | 125 | "Printing international characters on Windows": "PrintingInternationalCharactersExamples"; |
|---|
| | 126 | "Date Localization using version": "DateLocalizationUsingVersionExample"; |
|---|
| | 127 | "Struct \"constructors\"": "StructConstructorsExample"; |
|---|
| | 128 | "Application path": "ApplicationPathExample"; |
|---|
| | 129 | - just date |
|---|
| | 130 | "Locales": "LocalesExample"; |
|---|
| | 131 | "CreateLink using COM": "CreateLinkUsingComExample"; |
|---|
| | 132 | "Endless For Loop": "EndlessForLoopExample"; |
|---|
| | 133 | "Meta tags (__FILE__, __LINE__, etc.)": "MetaTagsExample"; |
|---|
| | 134 | "uudecode": "UudecodeExample"; |
|---|
| | 135 | |
|---|
| | 136 | "Keywords": |
|---|
| | 137 | "asm": "AsmExample"; |
|---|
| | 138 | - just date |
|---|
| | 139 | "auto": "AutoExample"; |
|---|
| | 140 | - just date |
|---|
| | 141 | "alias": "AliasExample"; |
|---|
| | 142 | - just date |
|---|
| | 143 | "interface": "InterfaceExample"; |
|---|
| | 144 | "dchar": "DcharExample"; |
|---|
| | 145 | "final": "FinalExample"; |
|---|
| | 146 | "goto": "GotoExample"; |
|---|
| | 147 | "return": "ReturnExample"; |
|---|
| | 148 | |
|---|
| | 149 | "Arrays": |
|---|
| | 150 | "Delete All Keys From Associative Array": "DeleteAllKeysFromAssocArrayExample"; |
|---|
| | 151 | "Static vs dynamic arrays": "StaticVsDynamicArraysExample"; |
|---|
| | 152 | "Dealing with strings copy": "CopyingStringsExample"; |
|---|
| | 153 | "Arrays of classes": "ArraysOfClassesExample"; |
|---|
| | 154 | - only in 2 |
|---|
| | 155 | "Various char arrays": "VariousCharArraysExample"; |
|---|
| | 156 | "Dimensioning Static Arrays": "DimensioningStaticArraysExample"; |
|---|
| | 157 | "Returning Arrays from Functions": "ReturningArraysFromFunctionsExample"; |
|---|
| | 158 | "Using char[][] args": "UsingCharArrayArgumentsExample"; |
|---|
| | 159 | |
|---|
| | 160 | "Common Errors": |
|---|
| | 161 | "Increasing the Size of a Dynamic Array": "IncreasingSizeOfDynamicArrayExample"; |
|---|
| | 162 | "Using Objects": "UsingObjectsExample"; |
|---|
| | 163 | "Printing a Slice from a String": "PrintingSliceFromStringExample"; |
|---|
| | 164 | |
|---|
| | 165 | "Delegates": |
|---|
| | 166 | "DelegateTest.d": "UsingDelegatesWithinObjectsExample"; |
|---|
| | 167 | "Delegates": "UsingDelegateInsteadOfInterfaceExample"; |
|---|
| | 168 | "Proper creation & use of stack delegates": "UsingStackDelegatesExample"; |
|---|
| | 169 | "Don't Return a Stack Delegate": "DontReturnStackDelegateExample"; |
|---|
| | 170 | "Copyable stack delegates, implemented with structs and classes": "CopyableStackDelegatesWithStructsAndClassesExample"; |
|---|
| | 171 | "Copyable stack delegates (with writefln)": "CopyableStackDelegatesWithWriteflnExample"; |
|---|
| | 172 | "Delegate 1": "DelegateNonStaticNestedFunctionExample"; |
|---|
| | 173 | "Delegate 2": "IntFunctionDelegateExample"; |
|---|
| | 174 | |
|---|
| | 175 | "Foreach": |
|---|
| | 176 | "Foreach on a class": "ForeachOnClassExample"; |
|---|
| | 177 | "Foreach with an inout": "ForeachWithInoutExample"; |
|---|
| | 178 | "Foreach with a string literal": "ForeachWithStringLiteralExample"; |
|---|
| | 179 | "Foreach with a char[]": "ForeachWithCharArrayExample"; |
|---|
| | 180 | "Foreach with key and value pairs": "ForeachKeyValuePairsExample"; |
|---|
| | 181 | "Associative array of strings": "ForeachStringArrExample"; |
|---|
| | 182 | |
|---|
| | 183 | "Function Literals": |
|---|
| | 184 | "Function Literal Assignment": "FunctionLiteralAssignExample"; |
|---|
| | 185 | "Function Literal / Anonymous Function": "AnonymousFunctionExample"; |
|---|
| | 186 | - only date |
|---|
| | 187 | |
|---|
| | 188 | "Handling errors", "Handling Errors": |
|---|
| | 189 | "DBC: basic design by contract": "DesignByContractExample"; |
|---|
| | 190 | "Try/Catch/Finally": "TryCatchFinallyExample"; |
|---|
| | 191 | |
|---|
| | 192 | "Operator Overloading": |
|---|
| | 193 | "Currency": "CurrencyExample"; |
|---|
| | 194 | "Currency (Using with)": "CurrencyUsingWithExample"; |
|---|
| | 195 | "opCall": "OpCallExample"; |
|---|
| | 196 | "Byte.d": "ByteOperatingOverloadExample"; |
|---|
| | 197 | - just date |
|---|
| | 198 | |
|---|
| | 199 | "switch / case", "Switch / Case": |
|---|
| | 200 | "Switch-Construct": "SwitchCaseExample"; |
|---|
| | 201 | "The Twelve Days of Christmas": "TwelveDaysOfChristmasExampleOne"; |
|---|
| | 202 | "The Twelve Days of Christmas (Reprise)": "TwelveDaysOfChristmasExampleTwo"; |
|---|
| | 203 | |
|---|
| | 204 | /* These are work-arounds for examples that should be identified as in the "Template" category. */ |
|---|
| | 205 | "Struct Template": "StructTemplateExample"; |
|---|
| | 206 | "Interface Template": "InterfaceTemplateExample"; |
|---|
| | 207 | "Iterator": "IteratorExample"; |
|---|
| | 208 | "Internal templates": "InternalTemplatesExample"; |
|---|
| | 209 | "Simple Template": "SimpleTemplateExample"; |
|---|
| | 210 | "Template Constructors": "TemplateConstructorsExample"; |
|---|
| | 211 | "Template Functions": "TemplateFunctionsExample"; |
|---|
| | 212 | "Multiple Inheritance with template 'bolt-ins'": "MultipleInheritanceWithTemplateBoltInsExample"; |
|---|
| | 213 | "Variable Arguments": "TemplateVariableArgumentsExample"; |
|---|
| | 214 | "Template RTTI": "TemplateRttiExample"; |
|---|
| | 215 | |
|---|
| | 216 | |
|---|
| | 217 | "Templates": |
|---|
| | 218 | "Struct Template": "StructTemplateExample"; |
|---|
| | 219 | "Interface Template": "InterfaceTemplateExample"; |
|---|
| | 220 | "Iterator": "IteratorExample"; |
|---|
| | 221 | "Internal templates": "InternalTemplatesExample"; |
|---|
| | 222 | "Simple Template": "SimpleTemplateExample"; |
|---|
| | 223 | "Template Constructors": "TemplateConstructorsExample"; |
|---|
| | 224 | "Template Functions": "TemplateFunctionsExample"; |
|---|
| | 225 | "Multiple Inheritance with template 'bolt-ins'": "MultipleInheritanceWithTemplateBoltInsExample"; |
|---|
| | 226 | "Variable Arguments": "TemplateVariableArgumentsExample"; |
|---|
| | 227 | "Template RTTI": "TemplateRttiExample"; |
|---|
| | 228 | |
|---|
| | 229 | "Versioning": |
|---|
| | 230 | "Built-in Versions": "BuiltInVersionsExample"; |
|---|
| | 231 | - just date |
|---|
| | 232 | "Using versions to store multiple programs in one file": "UsingVersionsToStoreMultipleProgramInOneFileExample"; |
|---|
| | 233 | "Compile time versioning": "CompileTimeVersioningExample"; |
|---|
| | 234 | |
|---|
| | 235 | "DFL": |
|---|
| | 236 | "DflMiniCalc": "DflMiniCalc"; |
|---|
| | 237 | "Resizable Dialog": "DflResizableDialog"; |
|---|
| | 238 | "MiniCalcWithRmb": "DflMiniCalcWithRmbExample"; |
|---|
| | 239 | "DflTextBox with Selection reverse video": "DflTextBoxWithSelectionExample"; |
|---|
| | 240 | "ToolTips and ListBox having Object entries": "DflToolTipsAndListBoxExamples"; |
|---|
| | 241 | "Checkboxes": "DflCheckboxesExample"; |
|---|
| | 242 | "Controls": "DflControlsExample"; |
|---|
| | 243 | |
|---|
| | 244 | "Mango": |
|---|
| | 245 | "I/O with Mango": "IoWithMangoExample"; |
|---|
| | 246 | |
|---|
| | 247 | "Standard Library": |
|---|
| | 248 | "String usage: split and splitlines": "SplitAndSplitLinesExample"; |
|---|
| | 249 | "I/O on stdin and stdout streams": "StdInStdOutStreamsExample"; |
|---|
| | 250 | "httpHEAD": "HttpHeadExample"; |
|---|
| | 251 | "OutBuffer": "OutBufferExample"; |
|---|
| | 252 | "Win32 Registry api": "WinRegistryApiExample"; |
|---|
| | 253 | "Using the File's \"FileMode\" attribute": "UsingFileModeExample"; |
|---|
| | 254 | "Elapsed Time (uses std.date and std.c.time)": "ElapsedTimeExample"; |
|---|
| | 255 | "Base64 Decoding": "BaseSixtyFourDecodingExample"; |
|---|
| | 256 | - just date |
|---|
| | 257 | "Compile all files into a .lib": "CompileAllFilesIntoLibExample"; |
|---|
| | 258 | "writef": "WritefExample"; |
|---|
| | 259 | "std.perf": "StdPerfExample"; |
|---|
| | 260 | "Make all.html": "MakeAllHtmlExample"; |
|---|
| | 261 | "File Input": "FileInputExample"; |
|---|
| | 262 | "recls": "ReclsExample"; |
|---|
| | 263 | "Regular Expressions": "RegularExpressionsExample"; |
|---|
| | 264 | "std.stream readLine": "StdStreamReadLineExample"; |
|---|
| | 265 | "Threads": "ThreadsExample"; |
|---|
| | 266 | "Variable Arguments using std.stdarg (and std.stdio)": "VariableArgumentsUsingStdStdargExample"; |
|---|
| | 267 | "Variadic Functions": "VariadicFunctionsExample"; |
|---|
| | 268 | "Variable Arguments": "VariableArgumentsExample"; |
|---|
| | 269 | "zip": "ZipExample"; |
|---|
| | 270 | "Zlib": "ZlibExample"; |
|---|
| | 271 | "Unzip using std.zip": "UnzipUsingStdZipExample"; |
|---|
| | 272 | |
|---|
| | 273 | "Windows GUI": |
|---|
| | 274 | "MiniCalc": "MiniCalcExample"; |
|---|
| | 275 | "TreeView": "TreeViewExample"; |
|---|
| | 276 | "MiniCalc - RestorePosition": "MiniCalcRestorePositionExample"; |
|---|