testproject.html 64 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051
  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  3. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  4. <!-- This file is generated by Nim. -->
  5. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  6. <head>
  7. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  8. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  9. <!-- Favicon -->
  10. <link rel="shortcut icon" href="data:image/x-icon;base64,AAABAAEAEBAAAAEAIABoBAAAFgAAACgAAAAQAAAAIAAAAAEAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AAAAAAUAAAAF////AP///wD///8A////AP///wD///8A////AP///wD///8A////AAAAAAIAAABbAAAAlQAAAKIAAACbAAAAmwAAAKIAAACVAAAAWwAAAAL///8A////AP///wD///8A////AAAAABQAAADAAAAAYwAAAA3///8A////AP///wD///8AAAAADQAAAGMAAADAAAAAFP///wD///8A////AP///wAAAACdAAAAOv///wD///8A////AP///wD///8A////AP///wD///8AAAAAOgAAAJ3///8A////AP///wAAAAAnAAAAcP///wAAAAAoAAAASv///wD///8A////AP///wAAAABKAAAAKP///wAAAABwAAAAJ////wD///8AAAAAgQAAABwAAACIAAAAkAAAAJMAAACtAAAAFQAAABUAAACtAAAAkwAAAJAAAACIAAAAHAAAAIH///8A////AAAAAKQAAACrAAAAaP///wD///8AAAAARQAAANIAAADSAAAARf///wD///8AAAAAaAAAAKsAAACk////AAAAADMAAACcAAAAnQAAABj///8A////AP///wAAAAAYAAAAGP///wD///8A////AAAAABgAAACdAAAAnAAAADMAAAB1AAAAwwAAAP8AAADpAAAAsQAAAE4AAAAb////AP///wAAAAAbAAAATgAAALEAAADpAAAA/wAAAMMAAAB1AAAAtwAAAOkAAAD/AAAA/wAAAP8AAADvAAAA3gAAAN4AAADeAAAA3gAAAO8AAAD/AAAA/wAAAP8AAADpAAAAtwAAAGUAAAA/AAAA3wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAADfAAAAPwAAAGX///8A////AAAAAEgAAADtAAAAvwAAAL0AAADGAAAA7wAAAO8AAADGAAAAvQAAAL8AAADtAAAASP///wD///8A////AP///wD///8AAAAAO////wD///8A////AAAAAIcAAACH////AP///wD///8AAAAAO////wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A//8AAP//AAD4HwAA7/cAAN/7AAD//wAAoYUAAJ55AACf+QAAh+EAAAAAAADAAwAA4AcAAP5/AAD//wAA//8AAA=="/>
  11. <link rel="icon" type="image/png" sizes="32x32" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAA3XAAAN1wFCKJt4AAAAB3RJTUUH4QQQEwksSS9ZWwAAAk1JREFUWMPtll2ITVEUx39nn/O7Y5qR8f05wtCUUr6ZIS++8pEnkZInPImneaCQ5METNdOkeFBKUhMPRIkHKfEuUZSUlGlKPN2TrgfncpvmnntnmlEyq1Z7t89/rf9a6+y99oZxGZf/XeIq61EdtgKXgdXA0xrYAvBjOIF1AI9zvjcC74BSpndrJPkBWDScTF8Aa4E3wDlgHbASaANmVqlcCnwHvgDvgVfAJ+AikAAvgfVZwLnSVZHZaOuKoQi3ZOMi4NkYkpe1p4J7A8BpYAD49hfIy/oqG0+hLomiKP2L5L+1ubn5115S+3OAn4EnwBlgMzCjyt6ZAnQCJ4A7wOs88iRJHvw50HoujuPBoCKwHWiosy8MdfZnAdcHk8dxXFJ3VQbQlCTJvRBCGdRbD4M6uc5glpY3eAihpN5S5w12diSEcCCEcKUO4ljdr15T76ur1FDDLIQQ3qv71EdDOe3Kxj3leRXyk+pxdWnFWod6Wt2bY3de3aSuUHcPBVimHs7mK9WrmeOF6lR1o9qnzskh2ar2qm1qizpfXaPeVGdlmGN5pb09qMxz1Xb1kLqgzn1RyH7JUXW52lr5e/Kqi9qpto7V1atuUzfnARrV7jEib1T76gG2qxdGmXyiekkt1GswPTtek0aBfJp6YySGBfWg2tPQ0FAYgf1stUfdmdcjarbYJEniKIq6gY/Aw+zWHAC+p2labGpqiorFYgGYCEzN7oQdQClN07O1/EfDyGgC0ALMBdYAi4FyK+4H3gLPsxfR1zRNi+NP7nH5J+QntnXe5B5mpfQAAAAASUVORK5CYII=">
  12. <!-- Google fonts -->
  13. <link href='https://fonts.googleapis.com/css?family=Lato:400,600,900' rel='stylesheet' type='text/css'/>
  14. <link href='https://fonts.googleapis.com/css?family=Source+Code+Pro:400,500,600' rel='stylesheet' type='text/css'/>
  15. <!-- CSS -->
  16. <title>testproject</title>
  17. <link rel="stylesheet" type="text/css" href="nimdoc.out.css">
  18. <script type="text/javascript" src="dochack.js"></script>
  19. <script type="text/javascript">
  20. function main() {
  21. var pragmaDots = document.getElementsByClassName("pragmadots");
  22. for (var i = 0; i < pragmaDots.length; i++) {
  23. pragmaDots[i].onclick = function(event) {
  24. // Hide tease
  25. event.target.parentNode.style.display = "none";
  26. // Show actual
  27. event.target.parentNode.nextElementSibling.style.display = "inline";
  28. }
  29. }
  30. const toggleSwitch = document.querySelector('.theme-switch input[type="checkbox"]');
  31. function switchTheme(e) {
  32. if (e.target.checked) {
  33. document.documentElement.setAttribute('data-theme', 'dark');
  34. localStorage.setItem('theme', 'dark');
  35. } else {
  36. document.documentElement.setAttribute('data-theme', 'light');
  37. localStorage.setItem('theme', 'light');
  38. }
  39. }
  40. toggleSwitch.addEventListener('change', switchTheme, false);
  41. const currentTheme = localStorage.getItem('theme') ? localStorage.getItem('theme') : null;
  42. if (currentTheme) {
  43. document.documentElement.setAttribute('data-theme', currentTheme);
  44. if (currentTheme === 'dark') {
  45. toggleSwitch.checked = true;
  46. }
  47. }
  48. }
  49. window.addEventListener('DOMContentLoaded', main);
  50. </script>
  51. </head>
  52. <body>
  53. <div class="document" id="documentId">
  54. <div class="container">
  55. <h1 class="title">testproject</h1>
  56. <div class="row">
  57. <div class="three columns">
  58. <div class="theme-switch-wrapper">
  59. <label class="theme-switch" for="checkbox">
  60. <input type="checkbox" id="checkbox" />
  61. <div class="slider round"></div>
  62. </label>
  63. &nbsp;&nbsp;&nbsp; <em>Dark Mode</em>
  64. </div>
  65. <div id="global-links">
  66. <ul class="simple">
  67. <li>
  68. <a href="theindex.html">Index</a>
  69. </li>
  70. </ul>
  71. </div>
  72. <div id="searchInputDiv">
  73. Search: <input type="text" id="searchInput"
  74. onkeyup="search()" />
  75. </div>
  76. <div>
  77. Group by:
  78. <select onchange="groupBy(this.value)">
  79. <option value="section">Section</option>
  80. <option value="type">Type</option>
  81. </select>
  82. </div>
  83. <ul class="simple simple-toc" id="toc-list">
  84. <li>
  85. <a class="reference reference-toplevel" href="#6" id="56">Imports</a>
  86. <ul class="simple simple-toc-section">
  87. </ul>
  88. </li>
  89. <li>
  90. <a class="reference reference-toplevel" href="#7" id="57">Types</a>
  91. <ul class="simple simple-toc-section">
  92. <li><a class="reference" href="#A"
  93. title="A {.inject.} = enum
  94. aA">A</a></li>
  95. <li><a class="reference" href="#B"
  96. title="B {.inject.} = enum
  97. bB">B</a></li>
  98. <li><a class="reference" href="#Foo"
  99. title="Foo = enum
  100. enumValueA2">Foo</a></li>
  101. <li><a class="reference" href="#Shapes"
  102. title="Shapes = enum
  103. Circle, ## A circle
  104. Triangle, ## A three-sided shape
  105. Rectangle ## A four-sided shape">Shapes</a></li>
  106. </ul>
  107. </li>
  108. <li>
  109. <a class="reference reference-toplevel" href="#8" id="58">Vars</a>
  110. <ul class="simple simple-toc-section">
  111. <li><a class="reference" href="#someVariable"
  112. title="someVariable: bool">someVariable</a></li>
  113. <li><a class="reference" href="#aVariable"
  114. title="aVariable: array[1, int]">aVariable</a></li>
  115. </ul>
  116. </li>
  117. <li>
  118. <a class="reference reference-toplevel" href="#10" id="60">Consts</a>
  119. <ul class="simple simple-toc-section">
  120. <li><a class="reference" href="#C_A"
  121. title="C_A = 0x7FF0000000000000&apos;f64">C_A</a></li>
  122. <li><a class="reference" href="#C_B"
  123. title="C_B = 0o377&apos;i8">C_B</a></li>
  124. <li><a class="reference" href="#C_C"
  125. title="C_C = 0o277&apos;i8">C_C</a></li>
  126. <li><a class="reference" href="#C_D"
  127. title="C_D = 0o177777&apos;i16">C_D</a></li>
  128. </ul>
  129. </li>
  130. <li>
  131. <a class="reference reference-toplevel" href="#12" id="62">Procs</a>
  132. <ul class="simple simple-toc-section">
  133. <ul class="simple nested-toc-section">z10
  134. <li><a class="reference" href="#z10"
  135. title="z10()">z10()</a></li>
  136. </ul>
  137. <ul class="simple nested-toc-section">tripleStrLitTest
  138. <li><a class="reference" href="#tripleStrLitTest"
  139. title="tripleStrLitTest()">tripleStrLitTest()</a></li>
  140. </ul>
  141. <ul class="simple nested-toc-section">z17
  142. <li><a class="reference" href="#z17"
  143. title="z17()">z17()</a></li>
  144. </ul>
  145. <ul class="simple nested-toc-section">asyncFun3
  146. <li><a class="reference" href="#asyncFun3"
  147. title="asyncFun3(): owned(Future[void])">asyncFun3(): owned(Future[void])</a></li>
  148. </ul>
  149. <ul class="simple nested-toc-section">z2
  150. <li><a class="reference" href="#z2"
  151. title="z2()">z2()</a></li>
  152. </ul>
  153. <ul class="simple nested-toc-section">bar
  154. <li><a class="reference" href="#bar%2CT%2CT"
  155. title="bar[T](a, b: T): T">bar[T](a, b: T): T</a></li>
  156. </ul>
  157. <ul class="simple nested-toc-section">fromUtils3
  158. <li><a class="reference" href="#fromUtils3"
  159. title="fromUtils3()">fromUtils3()</a></li>
  160. </ul>
  161. <ul class="simple nested-toc-section">isValid
  162. <li><a class="reference" href="#isValid%2CT"
  163. title="isValid[T](x: T): bool">isValid[T](x: T): bool</a></li>
  164. </ul>
  165. <ul class="simple nested-toc-section">z6
  166. <li><a class="reference" href="#z6"
  167. title="z6(): int">z6(): int</a></li>
  168. </ul>
  169. <ul class="simple nested-toc-section">anything
  170. <li><a class="reference" href="#anything"
  171. title="anything()">anything()</a></li>
  172. </ul>
  173. <ul class="simple nested-toc-section">low
  174. <li><a class="reference" href="#low%2CT"
  175. title="low[T: Ordinal | enum | range](x: T): T">low[T: Ordinal | enum | range](x: T): T</a></li>
  176. </ul>
  177. <ul class="simple nested-toc-section">p1
  178. <li><a class="reference" href="#p1"
  179. title="p1()">p1()</a></li>
  180. </ul>
  181. <ul class="simple nested-toc-section">z11
  182. <li><a class="reference" href="#z11"
  183. title="z11()">z11()</a></li>
  184. </ul>
  185. <ul class="simple nested-toc-section">buzz
  186. <li><a class="reference" href="#buzz%2CT%2CT"
  187. title="buzz[T](a, b: T): T">buzz[T](a, b: T): T</a></li>
  188. </ul>
  189. <ul class="simple nested-toc-section">low2
  190. <li><a class="reference" href="#low2%2CT"
  191. title="low2[T: Ordinal | enum | range](x: T): T">low2[T: Ordinal | enum | range](x: T): T</a></li>
  192. </ul>
  193. <ul class="simple nested-toc-section">z7
  194. <li><a class="reference" href="#z7"
  195. title="z7(): int">z7(): int</a></li>
  196. </ul>
  197. <ul class="simple nested-toc-section">z13
  198. <li><a class="reference" href="#z13"
  199. title="z13()">z13()</a></li>
  200. </ul>
  201. <ul class="simple nested-toc-section">baz
  202. <li><a class="reference" href="#baz%2CT%2CT"
  203. title="baz[T](a, b: T): T">baz[T](a, b: T): T</a></li>
  204. <li><a class="reference" href="#baz"
  205. title="baz()">baz()</a></li>
  206. </ul>
  207. <ul class="simple nested-toc-section">addfBug14485
  208. <li><a class="reference" href="#addfBug14485"
  209. title="addfBug14485()">addfBug14485()</a></li>
  210. </ul>
  211. <ul class="simple nested-toc-section">c_printf
  212. <li><a class="reference" href="#c_printf%2Ccstring"
  213. title="c_printf(frmt: cstring): cint">c_printf(frmt: cstring): cint</a></li>
  214. </ul>
  215. <ul class="simple nested-toc-section">z12
  216. <li><a class="reference" href="#z12"
  217. title="z12(): int">z12(): int</a></li>
  218. </ul>
  219. <ul class="simple nested-toc-section">z3
  220. <li><a class="reference" href="#z3"
  221. title="z3()">z3()</a></li>
  222. </ul>
  223. <ul class="simple nested-toc-section">z9
  224. <li><a class="reference" href="#z9"
  225. title="z9()">z9()</a></li>
  226. </ul>
  227. <ul class="simple nested-toc-section">z4
  228. <li><a class="reference" href="#z4"
  229. title="z4()">z4()</a></li>
  230. </ul>
  231. <ul class="simple nested-toc-section">someFunc
  232. <li><a class="reference" href="#someFunc"
  233. title="someFunc()">someFunc()</a></li>
  234. </ul>
  235. <ul class="simple nested-toc-section">z8
  236. <li><a class="reference" href="#z8"
  237. title="z8(): int">z8(): int</a></li>
  238. </ul>
  239. <ul class="simple nested-toc-section">z1
  240. <li><a class="reference" href="#z1"
  241. title="z1(): Foo">z1(): Foo</a></li>
  242. </ul>
  243. <ul class="simple nested-toc-section">z5
  244. <li><a class="reference" href="#z5"
  245. title="z5(): int">z5(): int</a></li>
  246. </ul>
  247. <ul class="simple nested-toc-section">asyncFun2
  248. <li><a class="reference" href="#asyncFun2"
  249. title="asyncFun2(): owned(Future[void])">asyncFun2(): owned(Future[void])</a></li>
  250. </ul>
  251. <ul class="simple nested-toc-section">c_nonexistant
  252. <li><a class="reference" href="#c_nonexistant%2Ccstring"
  253. title="c_nonexistant(frmt: cstring): cint">c_nonexistant(frmt: cstring): cint</a></li>
  254. </ul>
  255. <ul class="simple nested-toc-section">asyncFun1
  256. <li><a class="reference" href="#asyncFun1"
  257. title="asyncFun1(): Future[int]">asyncFun1(): Future[int]</a></li>
  258. </ul>
  259. </ul>
  260. </li>
  261. <li>
  262. <a class="reference reference-toplevel" href="#14" id="64">Methods</a>
  263. <ul class="simple simple-toc-section">
  264. <ul class="simple nested-toc-section">method2
  265. <li><a class="reference" href="#method2.e%2CMoo"
  266. title="method2(self: Moo): int">method2(self: Moo): int</a></li>
  267. </ul>
  268. <ul class="simple nested-toc-section">method3
  269. <li><a class="reference" href="#method3.e%2CMoo"
  270. title="method3(self: Moo): int">method3(self: Moo): int</a></li>
  271. </ul>
  272. <ul class="simple nested-toc-section">method1
  273. <li><a class="reference" href="#method1.e%2CMoo"
  274. title="method1(self: Moo)">method1(self: Moo)</a></li>
  275. </ul>
  276. </ul>
  277. </li>
  278. <li>
  279. <a class="reference reference-toplevel" href="#15" id="65">Iterators</a>
  280. <ul class="simple simple-toc-section">
  281. <ul class="simple nested-toc-section">iter2
  282. <li><a class="reference" href="#iter2.i%2Cint"
  283. title="iter2(n: int): int">iter2(n: int): int</a></li>
  284. </ul>
  285. <ul class="simple nested-toc-section">fromUtils1
  286. <li><a class="reference" href="#fromUtils1.i"
  287. title="fromUtils1(): int">fromUtils1(): int</a></li>
  288. </ul>
  289. <ul class="simple nested-toc-section">iter1
  290. <li><a class="reference" href="#iter1.i%2Cint"
  291. title="iter1(n: int): int">iter1(n: int): int</a></li>
  292. </ul>
  293. </ul>
  294. </li>
  295. <li>
  296. <a class="reference reference-toplevel" href="#17" id="67">Macros</a>
  297. <ul class="simple simple-toc-section">
  298. <ul class="simple nested-toc-section">bar
  299. <li><a class="reference" href="#bar.m"
  300. title="bar(): untyped">bar(): untyped</a></li>
  301. </ul>
  302. <ul class="simple nested-toc-section">z18
  303. <li><a class="reference" href="#z18.m"
  304. title="z18(): int">z18(): int</a></li>
  305. </ul>
  306. <ul class="simple nested-toc-section">z16
  307. <li><a class="reference" href="#z16.m"
  308. title="z16()">z16()</a></li>
  309. </ul>
  310. </ul>
  311. </li>
  312. <li>
  313. <a class="reference reference-toplevel" href="#18" id="68">Templates</a>
  314. <ul class="simple simple-toc-section">
  315. <ul class="simple nested-toc-section">fromUtils2
  316. <li><a class="reference" href="#fromUtils2.t"
  317. title="fromUtils2()">fromUtils2()</a></li>
  318. </ul>
  319. <ul class="simple nested-toc-section">z6t
  320. <li><a class="reference" href="#z6t.t"
  321. title="z6t(): int">z6t(): int</a></li>
  322. </ul>
  323. <ul class="simple nested-toc-section">z14
  324. <li><a class="reference" href="#z14.t"
  325. title="z14()">z14()</a></li>
  326. </ul>
  327. <ul class="simple nested-toc-section">z15
  328. <li><a class="reference" href="#z15.t"
  329. title="z15()">z15()</a></li>
  330. </ul>
  331. <ul class="simple nested-toc-section">foo
  332. <li><a class="reference" href="#foo.t%2CSomeType%2CSomeType"
  333. title="foo(a, b: SomeType)">foo(a, b: SomeType)</a></li>
  334. </ul>
  335. <ul class="simple nested-toc-section">myfn
  336. <li><a class="reference" href="#myfn.t"
  337. title="myfn()">myfn()</a></li>
  338. </ul>
  339. <ul class="simple nested-toc-section">testNimDocTrailingExample
  340. <li><a class="reference" href="#testNimDocTrailingExample.t"
  341. title="testNimDocTrailingExample()">testNimDocTrailingExample()</a></li>
  342. </ul>
  343. </ul>
  344. </li>
  345. </ul>
  346. </div>
  347. <div class="nine columns" id="content">
  348. <div id="tocRoot"></div>
  349. <p class="module-desc">This is the top level module.
  350. <p><strong class="examples_text">Example:</strong></p>
  351. <pre class="listing"><span class="Keyword">import</span><span class="Whitespace"> </span><span class="Identifier">testproject</span><span class="Whitespace">
  352. </span><span class="Keyword">import</span><span class="Whitespace"> </span><span class="Identifier">subdir</span><span class="Whitespace"> </span><span class="Operator">/</span><span class="Whitespace"> </span><span class="Identifier">subdir_b</span><span class="Whitespace"> </span><span class="Operator">/</span><span class="Whitespace"> </span><span class="Identifier">utils</span><span class="Whitespace">
  353. </span><span class="Identifier">doAssert</span><span class="Whitespace"> </span><span class="Identifier">bar</span><span class="Punctuation">(</span><span class="DecNumber">3</span><span class="Punctuation">,</span><span class="Whitespace"> </span><span class="DecNumber">4</span><span class="Punctuation">)</span><span class="Whitespace"> </span><span class="Operator">==</span><span class="Whitespace"> </span><span class="DecNumber">7</span><span class="Whitespace">
  354. </span><span class="Identifier">foo</span><span class="Punctuation">(</span><span class="Identifier">enumValueA</span><span class="Punctuation">,</span><span class="Whitespace"> </span><span class="Identifier">enumValueB</span><span class="Punctuation">)</span><span class="Whitespace">
  355. </span><span class="Comment"># bug #11078</span><span class="Whitespace">
  356. </span><span class="Keyword">for</span><span class="Whitespace"> </span><span class="Identifier">x</span><span class="Whitespace"> </span><span class="Keyword">in</span><span class="Whitespace"> </span><span class="StringLit">&quot;xx&quot;</span><span class="Punctuation">:</span><span class="Whitespace"> </span><span class="Keyword">discard</span></pre>top2
  357. <p><strong class="examples_text">Example:</strong></p>
  358. <pre class="listing"><span class="Keyword">import</span><span class="Whitespace"> </span><span class="Identifier">testproject</span><span class="Whitespace">
  359. </span><span class="Keyword">discard</span><span class="Whitespace"> </span><span class="StringLit">&quot;in top2&quot;</span></pre>top2 after
  360. <p><strong class="examples_text">Example:</strong></p>
  361. <pre class="listing"><span class="Keyword">import</span><span class="Whitespace"> </span><span class="Identifier">testproject</span><span class="Whitespace">
  362. </span><span class="Keyword">discard</span><span class="Whitespace"> </span><span class="StringLit">&quot;in top3&quot;</span></pre>top3 after
  363. <p><strong class="examples_text">Example:</strong></p>
  364. <pre class="listing"><span class="Keyword">import</span><span class="Whitespace"> </span><span class="Identifier">testproject</span><span class="Whitespace">
  365. </span><span class="Identifier">assert</span><span class="Whitespace"> </span><span class="DecNumber">3</span><span class="Operator">*</span><span class="DecNumber">2</span><span class="Whitespace"> </span><span class="Operator">==</span><span class="Whitespace"> </span><span class="DecNumber">6</span></pre></p>
  366. <div class="section" id="6">
  367. <h1><a class="toc-backref" href="#6">Imports</a></h1>
  368. <dl class="item">
  369. <a class="reference external" href="subdir/subdir_b/utils.html">subdir/subdir_b/utils</a>
  370. </dl></div>
  371. <div class="section" id="7">
  372. <h1><a class="toc-backref" href="#7">Types</a></h1>
  373. <dl class="item">
  374. <a id="A"></a>
  375. <dt><pre><a href="testproject.html#A"><span class="Identifier">A</span></a> {.<span class="Identifier">inject</span>.} <span class="Other">=</span> <span class="Keyword">enum</span>
  376. <span class="Identifier">aA</span></pre></dt>
  377. <dd>
  378. The enum A.
  379. </dd>
  380. <a id="B"></a>
  381. <dt><pre><a href="testproject.html#B"><span class="Identifier">B</span></a> {.<span class="Identifier">inject</span>.} <span class="Other">=</span> <span class="Keyword">enum</span>
  382. <span class="Identifier">bB</span></pre></dt>
  383. <dd>
  384. The enum B.
  385. </dd>
  386. <a id="Foo"></a>
  387. <dt><pre><a href="testproject.html#Foo"><span class="Identifier">Foo</span></a> <span class="Other">=</span> <span class="Keyword">enum</span>
  388. <span class="Identifier">enumValueA2</span></pre></dt>
  389. <dd>
  390. </dd>
  391. <a id="Shapes"></a>
  392. <dt><pre><a href="testproject.html#Shapes"><span class="Identifier">Shapes</span></a> <span class="Other">=</span> <span class="Keyword">enum</span>
  393. <span class="Identifier">Circle</span><span class="Other">,</span> <span class="Comment">## A circle</span>
  394. <span class="Identifier">Triangle</span><span class="Other">,</span> <span class="Comment">## A three-sided shape</span>
  395. <span class="Identifier">Rectangle</span> <span class="Comment">## A four-sided shape</span></pre></dt>
  396. <dd>
  397. Some shapes.
  398. </dd>
  399. </dl></div>
  400. <div class="section" id="8">
  401. <h1><a class="toc-backref" href="#8">Vars</a></h1>
  402. <dl class="item">
  403. <a id="someVariable"></a>
  404. <dt><pre><a href="testproject.html#someVariable"><span class="Identifier">someVariable</span></a><span class="Other">:</span> <span class="Identifier">bool</span></pre></dt>
  405. <dd>
  406. This should be visible.
  407. </dd>
  408. <a id="aVariable"></a>
  409. <dt><pre><a href="testproject.html#aVariable"><span class="Identifier">aVariable</span></a><span class="Other">:</span> <span class="Identifier">array</span><span class="Other">[</span><span class="DecNumber">1</span><span class="Other">,</span> <span class="Identifier">int</span><span class="Other">]</span></pre></dt>
  410. <dd>
  411. </dd>
  412. </dl></div>
  413. <div class="section" id="10">
  414. <h1><a class="toc-backref" href="#10">Consts</a></h1>
  415. <dl class="item">
  416. <a id="C_A"></a>
  417. <dt><pre><a href="testproject.html#C_A"><span class="Identifier">C_A</span></a> <span class="Other">=</span> <span class="FloatNumber">0x7FF0000000000000'f64</span></pre></dt>
  418. <dd>
  419. </dd>
  420. <a id="C_B"></a>
  421. <dt><pre><a href="testproject.html#C_B"><span class="Identifier">C_B</span></a> <span class="Other">=</span> <span class="DecNumber">0o377'i8</span></pre></dt>
  422. <dd>
  423. </dd>
  424. <a id="C_C"></a>
  425. <dt><pre><a href="testproject.html#C_C"><span class="Identifier">C_C</span></a> <span class="Other">=</span> <span class="DecNumber">0o277'i8</span></pre></dt>
  426. <dd>
  427. </dd>
  428. <a id="C_D"></a>
  429. <dt><pre><a href="testproject.html#C_D"><span class="Identifier">C_D</span></a> <span class="Other">=</span> <span class="DecNumber">0o177777'i16</span></pre></dt>
  430. <dd>
  431. </dd>
  432. </dl></div>
  433. <div class="section" id="12">
  434. <h1><a class="toc-backref" href="#12">Procs</a></h1>
  435. <dl class="item">
  436. <a id="bar,T,T"></a>
  437. <dt><pre><span class="Keyword">proc</span> <a href="#bar%2CT%2CT"><span class="Identifier">bar</span></a><span class="Other">[</span><span class="Identifier">T</span><span class="Other">]</span><span class="Other">(</span><span class="Identifier">a</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="Identifier">T</span><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">T</span></pre></dt>
  438. <dd>
  439. </dd>
  440. <a id="baz,T,T"></a>
  441. <dt><pre><span class="Keyword">proc</span> <a href="#baz%2CT%2CT"><span class="Identifier">baz</span></a><span class="Other">[</span><span class="Identifier">T</span><span class="Other">]</span><span class="Other">(</span><span class="Identifier">a</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="Identifier">T</span><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">T</span> {.<span class="Identifier">deprecated</span>.}</pre></dt>
  442. <dd>
  443. <div class="deprecation-message">
  444. <b>Deprecated</b>
  445. </div>
  446. This is deprecated without message.
  447. </dd>
  448. <a id="buzz,T,T"></a>
  449. <dt><pre><span class="Keyword">proc</span> <a href="#buzz%2CT%2CT"><span class="Identifier">buzz</span></a><span class="Other">[</span><span class="Identifier">T</span><span class="Other">]</span><span class="Other">(</span><span class="Identifier">a</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="Identifier">T</span><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">T</span> {.<span class="Identifier">deprecated</span><span class="Other">:</span> <span class="StringLit">&quot;since v0.20&quot;</span>.}</pre></dt>
  450. <dd>
  451. <div class="deprecation-message">
  452. <b>Deprecated:</b> since v0.20
  453. </div>
  454. This is deprecated with a message.
  455. </dd>
  456. <a id="someFunc"></a>
  457. <dt><pre><span class="Keyword">func</span> <a href="#someFunc"><span class="Identifier">someFunc</span></a><span class="Other">(</span><span class="Other">)</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  458. <dd>
  459. My someFunc. Stuff in <tt class="docutils literal"><span class="pre"><span class="Identifier">quotes</span></span></tt> here. <a class="reference external" href="https://nim-lang.org">Some link</a>
  460. </dd>
  461. <a id="fromUtils3"></a>
  462. <dt><pre><span class="Keyword">proc</span> <a href="#fromUtils3"><span class="Identifier">fromUtils3</span></a><span class="Other">(</span><span class="Other">)</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  463. <dd>
  464. came form utils but should be shown where <tt class="docutils literal"><span class="pre"><span class="Identifier">fromUtilsGen</span></span></tt> is called
  465. <p><strong class="examples_text">Example:</strong></p>
  466. <pre class="listing"><span class="Keyword">discard</span><span class="Whitespace"> </span><span class="DecNumber">1</span></pre>
  467. </dd>
  468. <a id="isValid,T"></a>
  469. <dt><pre><span class="Keyword">proc</span> <a href="#isValid%2CT"><span class="Identifier">isValid</span></a><span class="Other">[</span><span class="Identifier">T</span><span class="Other">]</span><span class="Other">(</span><span class="Identifier">x</span><span class="Other">:</span> <span class="Identifier">T</span><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">bool</span></pre></dt>
  470. <dd>
  471. </dd>
  472. <a id="z1"></a>
  473. <dt><pre><span class="Keyword">proc</span> <a href="#z1"><span class="Identifier">z1</span></a><span class="Other">(</span><span class="Other">)</span><span class="Other">:</span> <a href="testproject.html#Foo"><span class="Identifier">Foo</span></a> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  474. <dd>
  475. cz1
  476. </dd>
  477. <a id="z2"></a>
  478. <dt><pre><span class="Keyword">proc</span> <a href="#z2"><span class="Identifier">z2</span></a><span class="Other">(</span><span class="Other">)</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  479. <dd>
  480. cz2
  481. <p><strong class="examples_text">Example:</strong></p>
  482. <pre class="listing"><span class="Keyword">discard</span><span class="Whitespace"> </span><span class="StringLit">&quot;in cz2&quot;</span></pre>
  483. </dd>
  484. <a id="z3"></a>
  485. <dt><pre><span class="Keyword">proc</span> <a href="#z3"><span class="Identifier">z3</span></a><span class="Other">(</span><span class="Other">)</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  486. <dd>
  487. cz3
  488. </dd>
  489. <a id="z4"></a>
  490. <dt><pre><span class="Keyword">proc</span> <a href="#z4"><span class="Identifier">z4</span></a><span class="Other">(</span><span class="Other">)</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  491. <dd>
  492. cz4
  493. </dd>
  494. <a id="z5"></a>
  495. <dt><pre><span class="Keyword">proc</span> <a href="#z5"><span class="Identifier">z5</span></a><span class="Other">(</span><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">int</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  496. <dd>
  497. cz5
  498. </dd>
  499. <a id="z6"></a>
  500. <dt><pre><span class="Keyword">proc</span> <a href="#z6"><span class="Identifier">z6</span></a><span class="Other">(</span><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">int</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  501. <dd>
  502. cz6
  503. </dd>
  504. <a id="z7"></a>
  505. <dt><pre><span class="Keyword">proc</span> <a href="#z7"><span class="Identifier">z7</span></a><span class="Other">(</span><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">int</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  506. <dd>
  507. cz7
  508. </dd>
  509. <a id="z8"></a>
  510. <dt><pre><span class="Keyword">proc</span> <a href="#z8"><span class="Identifier">z8</span></a><span class="Other">(</span><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">int</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  511. <dd>
  512. cz8
  513. </dd>
  514. <a id="z9"></a>
  515. <dt><pre><span class="Keyword">proc</span> <a href="#z9"><span class="Identifier">z9</span></a><span class="Other">(</span><span class="Other">)</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  516. <dd>
  517. <p><strong class="examples_text">Example:</strong></p>
  518. <pre class="listing"><span class="Identifier">doAssert</span><span class="Whitespace"> </span><span class="DecNumber">1</span><span class="Whitespace"> </span><span class="Operator">+</span><span class="Whitespace"> </span><span class="DecNumber">1</span><span class="Whitespace"> </span><span class="Operator">==</span><span class="Whitespace"> </span><span class="DecNumber">2</span></pre>
  519. </dd>
  520. <a id="z10"></a>
  521. <dt><pre><span class="Keyword">proc</span> <a href="#z10"><span class="Identifier">z10</span></a><span class="Other">(</span><span class="Other">)</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  522. <dd>
  523. <p><strong class="examples_text">Example: cmd: -d:foobar</strong></p>
  524. <pre class="listing"><span class="Keyword">discard</span><span class="Whitespace"> </span><span class="DecNumber">1</span></pre>cz10
  525. </dd>
  526. <a id="z11"></a>
  527. <dt><pre><span class="Keyword">proc</span> <a href="#z11"><span class="Identifier">z11</span></a><span class="Other">(</span><span class="Other">)</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  528. <dd>
  529. <p><strong class="examples_text">Example:</strong></p>
  530. <pre class="listing"><span class="Keyword">discard</span><span class="Whitespace"> </span><span class="DecNumber">1</span></pre>
  531. </dd>
  532. <a id="z12"></a>
  533. <dt><pre><span class="Keyword">proc</span> <a href="#z12"><span class="Identifier">z12</span></a><span class="Other">(</span><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">int</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  534. <dd>
  535. <p><strong class="examples_text">Example:</strong></p>
  536. <pre class="listing"><span class="Keyword">discard</span><span class="Whitespace"> </span><span class="DecNumber">1</span></pre>
  537. </dd>
  538. <a id="z13"></a>
  539. <dt><pre><span class="Keyword">proc</span> <a href="#z13"><span class="Identifier">z13</span></a><span class="Other">(</span><span class="Other">)</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  540. <dd>
  541. cz13
  542. <p><strong class="examples_text">Example:</strong></p>
  543. <pre class="listing"><span class="Keyword">discard</span></pre>
  544. </dd>
  545. <a id="baz"></a>
  546. <dt><pre><span class="Keyword">proc</span> <a href="#baz"><span class="Identifier">baz</span></a><span class="Other">(</span><span class="Other">)</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  547. <dd>
  548. </dd>
  549. <a id="z17"></a>
  550. <dt><pre><span class="Keyword">proc</span> <a href="#z17"><span class="Identifier">z17</span></a><span class="Other">(</span><span class="Other">)</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  551. <dd>
  552. cz17 rest
  553. <p><strong class="examples_text">Example:</strong></p>
  554. <pre class="listing"><span class="Keyword">discard</span><span class="Whitespace"> </span><span class="DecNumber">1</span></pre>rest
  555. </dd>
  556. <a id="p1"></a>
  557. <dt><pre><span class="Keyword">proc</span> <a href="#p1"><span class="Identifier">p1</span></a><span class="Other">(</span><span class="Other">)</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  558. <dd>
  559. cp1
  560. <p><strong class="examples_text">Example:</strong></p>
  561. <pre class="listing"><span class="Identifier">doAssert</span><span class="Whitespace"> </span><span class="DecNumber">1</span><span class="Whitespace"> </span><span class="Operator">==</span><span class="Whitespace"> </span><span class="DecNumber">1</span><span class="Whitespace"> </span><span class="Comment"># regular comments work here</span></pre>c4
  562. <p><strong class="examples_text">Example:</strong></p>
  563. <pre class="listing"><span class="Comment"># c5 regular comments before 1st token work</span><span class="Whitespace">
  564. </span><span class="Comment"># regular comment</span><span class="Whitespace">
  565. </span><span class="LongComment">#[
  566. nested regular comment
  567. ]#</span><span class="Whitespace">
  568. </span><span class="Identifier">doAssert</span><span class="Whitespace"> </span><span class="DecNumber">2</span><span class="Whitespace"> </span><span class="Operator">==</span><span class="Whitespace"> </span><span class="DecNumber">2</span><span class="Whitespace"> </span><span class="Comment"># c8</span><span class="Whitespace">
  569. </span><span class="Comment">## this is a non-nested doc comment</span><span class="Whitespace">
  570. </span><span class="LongComment">##[
  571. this is a nested doc comment
  572. ]##</span><span class="Whitespace">
  573. </span><span class="Keyword">discard</span><span class="Whitespace"> </span><span class="StringLit">&quot;c9&quot;</span><span class="Whitespace">
  574. </span><span class="Comment"># also work after</span></pre>
  575. </dd>
  576. <a id="addfBug14485"></a>
  577. <dt><pre><span class="Keyword">proc</span> <a href="#addfBug14485"><span class="Identifier">addfBug14485</span></a><span class="Other">(</span><span class="Other">)</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  578. <dd>
  579. Some proc
  580. <p><strong class="examples_text">Example:</strong></p>
  581. <pre class="listing"><span class="Keyword">discard</span><span class="Whitespace"> </span><span class="StringLit">&quot;foo() = &quot;</span><span class="Whitespace"> </span><span class="Operator">&amp;</span><span class="Whitespace"> </span><span class="Operator">$</span><span class="Punctuation">[</span><span class="DecNumber">1</span><span class="Punctuation">]</span><span class="Whitespace">
  582. </span><span class="LongComment">#[
  583. 0: let&apos;s also add some broken html to make sure this won&apos;t break in future
  584. 1: &lt;/span&gt;
  585. 2: &lt;/span&gt;
  586. 3: &lt;/span
  587. 4: &lt;/script&gt;
  588. 5: &lt;/script
  589. 6: &lt;/script
  590. 7: end of broken html
  591. ]#</span></pre>
  592. </dd>
  593. <a id="c_printf,cstring"></a>
  594. <dt><pre><span class="Keyword">proc</span> <a href="#c_printf%2Ccstring"><span class="Identifier">c_printf</span></a><span class="Other">(</span><span class="Identifier">frmt</span><span class="Other">:</span> <span class="Identifier">cstring</span><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">cint</span> {.<span class="Identifier">importc</span><span class="Other">:</span> <span class="StringLit">&quot;printf&quot;</span><span class="Other">,</span> <span class="Identifier">header</span><span class="Other">:</span> <span class="StringLit">&quot;&lt;stdio.h&gt;&quot;</span><span class="Other">,</span>
  595. <span class="Identifier">varargs</span><span class="Other">,</span> <span class="Identifier">discardable</span>.}</pre></dt>
  596. <dd>
  597. the c printf. etc.
  598. </dd>
  599. <a id="c_nonexistant,cstring"></a>
  600. <dt><pre><span class="Keyword">proc</span> <a href="#c_nonexistant%2Ccstring"><span class="Identifier">c_nonexistant</span></a><span class="Other">(</span><span class="Identifier">frmt</span><span class="Other">:</span> <span class="Identifier">cstring</span><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">cint</span> {.<span class="Identifier">importc</span><span class="Other">:</span> <span class="StringLit">&quot;nonexistant&quot;</span><span class="Other">,</span>
  601. <span class="Identifier">header</span><span class="Other">:</span> <span class="StringLit">&quot;&lt;stdio.h&gt;&quot;</span><span class="Other">,</span> <span class="Identifier">varargs</span><span class="Other">,</span> <span class="Identifier">discardable</span>.}</pre></dt>
  602. <dd>
  603. </dd>
  604. <a id="low,T"></a>
  605. <dt><pre><span class="Keyword">proc</span> <a href="#low%2CT"><span class="Identifier">low</span></a><span class="Other">[</span><span class="Identifier">T</span><span class="Other">:</span> <span class="Identifier">Ordinal</span> <span class="Operator">|</span> <span class="Keyword">enum</span> <span class="Operator">|</span> <span class="Identifier">range</span><span class="Other">]</span><span class="Other">(</span><span class="Identifier">x</span><span class="Other">:</span> <span class="Identifier">T</span><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">T</span> {.<span class="Identifier">magic</span><span class="Other">:</span> <span class="StringLit">&quot;Low&quot;</span><span class="Other">,</span> <span class="Identifier">noSideEffect</span>.}</pre></dt>
  606. <dd>
  607. <p>Returns the lowest possible value of an ordinal value <tt class="docutils literal"><span class="pre"><span class="Identifier">x</span></span></tt>. As a special semantic rule, <tt class="docutils literal"><span class="pre"><span class="Identifier">x</span></span></tt> may also be a type identifier.</p>
  608. <p>See also:</p>
  609. <ul class="simple"><li><a class="reference external" href="#low2,T">low2(T)</a></li>
  610. </ul>
  611. <pre class="listing"><span class="Identifier">low</span><span class="Punctuation">(</span><span class="DecNumber">2</span><span class="Punctuation">)</span> <span class="Comment"># =&gt; -9223372036854775808</span></pre>
  612. </dd>
  613. <a id="low2,T"></a>
  614. <dt><pre><span class="Keyword">proc</span> <a href="#low2%2CT"><span class="Identifier">low2</span></a><span class="Other">[</span><span class="Identifier">T</span><span class="Other">:</span> <span class="Identifier">Ordinal</span> <span class="Operator">|</span> <span class="Keyword">enum</span> <span class="Operator">|</span> <span class="Identifier">range</span><span class="Other">]</span><span class="Other">(</span><span class="Identifier">x</span><span class="Other">:</span> <span class="Identifier">T</span><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">T</span> {.<span class="Identifier">magic</span><span class="Other">:</span> <span class="StringLit">&quot;Low&quot;</span><span class="Other">,</span> <span class="Identifier">noSideEffect</span>.}</pre></dt>
  615. <dd>
  616. <p>Returns the lowest possible value of an ordinal value <tt class="docutils literal"><span class="pre"><span class="Identifier">x</span></span></tt>. As a special semantic rule, <tt class="docutils literal"><span class="pre"><span class="Identifier">x</span></span></tt> may also be a type identifier.</p>
  617. <p>See also:</p>
  618. <ul class="simple"><li><a class="reference external" href="#low,T">low(T)</a></li>
  619. </ul>
  620. <pre class="listing"><span class="Identifier">low2</span><span class="Punctuation">(</span><span class="DecNumber">2</span><span class="Punctuation">)</span> <span class="Comment"># =&gt; -9223372036854775808</span></pre>
  621. <p><strong class="examples_text">Example:</strong></p>
  622. <pre class="listing"><span class="Keyword">discard</span><span class="Whitespace"> </span><span class="StringLit">&quot;in low2&quot;</span></pre>
  623. </dd>
  624. <a id="tripleStrLitTest"></a>
  625. <dt><pre><span class="Keyword">proc</span> <a href="#tripleStrLitTest"><span class="Identifier">tripleStrLitTest</span></a><span class="Other">(</span><span class="Other">)</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  626. <dd>
  627. <p><strong class="examples_text">Example:</strong></p>
  628. <pre class="listing"><span class="Comment">## mullitline string litterals are tricky as their indentation can span</span><span class="Whitespace">
  629. </span><span class="Comment">## below that of the runnableExamples</span><span class="Whitespace">
  630. </span><span class="Keyword">let</span><span class="Whitespace"> </span><span class="Identifier">s1a</span><span class="Whitespace"> </span><span class="Operator">=</span><span class="Whitespace"> </span><span class="LongStringLit">&quot;&quot;&quot;
  631. should appear at indent 0
  632. at indent 2
  633. at indent 0
  634. &quot;&quot;&quot;</span><span class="Whitespace">
  635. </span><span class="Comment"># make sure this works too</span><span class="Whitespace">
  636. </span><span class="Keyword">let</span><span class="Whitespace"> </span><span class="Identifier">s1b</span><span class="Whitespace"> </span><span class="Operator">=</span><span class="Whitespace"> </span><span class="LongStringLit">&quot;&quot;&quot;start at same line
  637. at indent 2
  638. at indent 0
  639. &quot;&quot;&quot;</span><span class="Whitespace"> </span><span class="Comment"># comment after</span><span class="Whitespace">
  640. </span><span class="Keyword">let</span><span class="Whitespace"> </span><span class="Identifier">s2</span><span class="Whitespace"> </span><span class="Operator">=</span><span class="Whitespace"> </span><span class="LongStringLit">&quot;&quot;&quot;sandwich &quot;&quot;&quot;</span><span class="Whitespace">
  641. </span><span class="Keyword">let</span><span class="Whitespace"> </span><span class="Identifier">s3</span><span class="Whitespace"> </span><span class="Operator">=</span><span class="Whitespace"> </span><span class="LongStringLit">&quot;&quot;&quot;&quot;&quot;&quot;</span><span class="Whitespace">
  642. </span><span class="Keyword">when</span><span class="Whitespace"> </span><span class="Identifier">false</span><span class="Punctuation">:</span><span class="Whitespace">
  643. </span><span class="Keyword">let</span><span class="Whitespace"> </span><span class="Identifier">s5</span><span class="Whitespace"> </span><span class="Operator">=</span><span class="Whitespace"> </span><span class="LongStringLit">&quot;&quot;&quot;
  644. in s5 &quot;&quot;&quot;</span><span class="Whitespace">
  645. </span><span class="Keyword">let</span><span class="Whitespace"> </span><span class="Identifier">s3b</span><span class="Whitespace"> </span><span class="Operator">=</span><span class="Whitespace"> </span><span class="Punctuation">[</span><span class="LongStringLit">&quot;&quot;&quot;
  646. %!? #[...] # inside a multiline ...
  647. &quot;&quot;&quot;</span><span class="Punctuation">,</span><span class="Whitespace"> </span><span class="StringLit">&quot;foo&quot;</span><span class="Punctuation">]</span><span class="Whitespace">
  648. </span><span class="Comment">## make sure handles trailing spaces</span><span class="Whitespace">
  649. </span><span class="Keyword">let</span><span class="Whitespace"> </span><span class="Identifier">s4</span><span class="Whitespace"> </span><span class="Operator">=</span><span class="Whitespace"> </span><span class="LongStringLit">&quot;&quot;&quot;
  650. &quot;&quot;&quot;</span><span class="Whitespace">
  651. </span><span class="Keyword">let</span><span class="Whitespace"> </span><span class="Identifier">s5</span><span class="Whitespace"> </span><span class="Operator">=</span><span class="Whitespace"> </span><span class="LongStringLit">&quot;&quot;&quot; x
  652. &quot;&quot;&quot;</span><span class="Whitespace">
  653. </span><span class="Keyword">let</span><span class="Whitespace"> </span><span class="Identifier">s6</span><span class="Whitespace"> </span><span class="Operator">=</span><span class="Whitespace"> </span><span class="LongStringLit">&quot;&quot;&quot; &quot;&quot;
  654. &quot;&quot;&quot;</span><span class="Whitespace">
  655. </span><span class="Keyword">let</span><span class="Whitespace"> </span><span class="Identifier">s7</span><span class="Whitespace"> </span><span class="Operator">=</span><span class="Whitespace"> </span><span class="LongStringLit">&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;</span><span class="Whitespace">
  656. </span><span class="Keyword">let</span><span class="Whitespace"> </span><span class="Identifier">s8</span><span class="Whitespace"> </span><span class="Operator">=</span><span class="Whitespace"> </span><span class="Punctuation">[</span><span class="LongStringLit">&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;</span><span class="Punctuation">,</span><span class="Whitespace"> </span><span class="LongStringLit">&quot;&quot;&quot;
  657. &quot;&quot;&quot;</span><span class="Whitespace"> </span><span class="Punctuation">]</span><span class="Whitespace">
  658. </span><span class="Keyword">discard</span><span class="Whitespace">
  659. </span><span class="Comment"># should be in</span></pre>
  660. </dd>
  661. <a id="asyncFun1"></a>
  662. <dt><pre><span class="Keyword">proc</span> <a href="#asyncFun1"><span class="Identifier">asyncFun1</span></a><span class="Other">(</span><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">Future</span><span class="Other">[</span><span class="Identifier">int</span><span class="Other">]</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">Exception</span><span class="Other">,</span> <span class="Identifier">ValueError</span><span class="Other">]</span><span class="Other">,</span>
  663. <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">RootEffect</span><span class="Other">]</span></span>.}</pre></dt>
  664. <dd>
  665. ok1
  666. </dd>
  667. <a id="asyncFun2"></a>
  668. <dt><pre><span class="Keyword">proc</span> <a href="#asyncFun2"><span class="Identifier">asyncFun2</span></a><span class="Other">(</span><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">owned</span><span class="Other">(</span><span class="Identifier">Future</span><span class="Other">[</span><span class="Identifier">void</span><span class="Other">]</span><span class="Other">)</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">Exception</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">RootEffect</span><span class="Other">]</span></span>.}</pre></dt>
  669. <dd>
  670. </dd>
  671. <a id="asyncFun3"></a>
  672. <dt><pre><span class="Keyword">proc</span> <a href="#asyncFun3"><span class="Identifier">asyncFun3</span></a><span class="Other">(</span><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">owned</span><span class="Other">(</span><span class="Identifier">Future</span><span class="Other">[</span><span class="Identifier">void</span><span class="Other">]</span><span class="Other">)</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">Exception</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">RootEffect</span><span class="Other">]</span></span>.}</pre></dt>
  673. <dd>
  674. <p><strong class="examples_text">Example:</strong></p>
  675. <pre class="listing"><span class="Keyword">discard</span></pre>ok1
  676. </dd>
  677. <a id="anything"></a>
  678. <dt><pre><span class="Keyword">proc</span> <a href="#anything"><span class="Identifier">anything</span></a><span class="Other">(</span><span class="Other">)</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  679. <dd>
  680. There is no block quote after blank lines at the beginning.
  681. </dd>
  682. </dl></div>
  683. <div class="section" id="14">
  684. <h1><a class="toc-backref" href="#14">Methods</a></h1>
  685. <dl class="item">
  686. <a id="method1.e,Moo"></a>
  687. <dt><pre><span class="Keyword">method</span> <a href="#method1.e%2CMoo"><span class="Identifier">method1</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <span class="Identifier">Moo</span><span class="Other">)</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  688. <dd>
  689. foo1
  690. </dd>
  691. <a id="method2.e,Moo"></a>
  692. <dt><pre><span class="Keyword">method</span> <a href="#method2.e%2CMoo"><span class="Identifier">method2</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <span class="Identifier">Moo</span><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">int</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  693. <dd>
  694. foo2
  695. </dd>
  696. <a id="method3.e,Moo"></a>
  697. <dt><pre><span class="Keyword">method</span> <a href="#method3.e%2CMoo"><span class="Identifier">method3</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <span class="Identifier">Moo</span><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">int</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  698. <dd>
  699. foo3
  700. </dd>
  701. </dl></div>
  702. <div class="section" id="15">
  703. <h1><a class="toc-backref" href="#15">Iterators</a></h1>
  704. <dl class="item">
  705. <a id="fromUtils1.i"></a>
  706. <dt><pre><span class="Keyword">iterator</span> <a href="#fromUtils1.i"><span class="Identifier">fromUtils1</span></a><span class="Other">(</span><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">int</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  707. <dd>
  708. <p><strong class="examples_text">Example:</strong></p>
  709. <pre class="listing"><span class="Comment"># ok1</span><span class="Whitespace">
  710. </span><span class="Identifier">assert</span><span class="Whitespace"> </span><span class="DecNumber">1</span><span class="Whitespace"> </span><span class="Operator">==</span><span class="Whitespace"> </span><span class="DecNumber">1</span><span class="Whitespace">
  711. </span><span class="Comment"># ok2</span></pre>
  712. </dd>
  713. <a id="iter1.i,int"></a>
  714. <dt><pre><span class="Keyword">iterator</span> <a href="#iter1.i%2Cint"><span class="Identifier">iter1</span></a><span class="Other">(</span><span class="Identifier">n</span><span class="Other">:</span> <span class="Identifier">int</span><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">int</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  715. <dd>
  716. foo1
  717. </dd>
  718. <a id="iter2.i,int"></a>
  719. <dt><pre><span class="Keyword">iterator</span> <a href="#iter2.i%2Cint"><span class="Identifier">iter2</span></a><span class="Other">(</span><span class="Identifier">n</span><span class="Other">:</span> <span class="Identifier">int</span><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">int</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  720. <dd>
  721. foo2
  722. <p><strong class="examples_text">Example:</strong></p>
  723. <pre class="listing"><span class="Keyword">discard</span><span class="Whitespace"> </span><span class="Comment"># bar</span></pre>
  724. </dd>
  725. </dl></div>
  726. <div class="section" id="17">
  727. <h1><a class="toc-backref" href="#17">Macros</a></h1>
  728. <dl class="item">
  729. <a id="bar.m"></a>
  730. <dt><pre><span class="Keyword">macro</span> <a href="#bar.m"><span class="Identifier">bar</span></a><span class="Other">(</span><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">untyped</span></pre></dt>
  731. <dd>
  732. </dd>
  733. <a id="z16.m"></a>
  734. <dt><pre><span class="Keyword">macro</span> <a href="#z16.m"><span class="Identifier">z16</span></a><span class="Other">(</span><span class="Other">)</span></pre></dt>
  735. <dd>
  736. <p><strong class="examples_text">Example:</strong></p>
  737. <pre class="listing"><span class="Keyword">discard</span><span class="Whitespace"> </span><span class="DecNumber">1</span></pre>cz16 after
  738. <p><strong class="examples_text">Example:</strong></p>
  739. <pre class="listing"><span class="Identifier">doAssert</span><span class="Whitespace"> </span><span class="DecNumber">2</span><span class="Whitespace"> </span><span class="Operator">==</span><span class="Whitespace"> </span><span class="DecNumber">1</span><span class="Whitespace"> </span><span class="Operator">+</span><span class="Whitespace"> </span><span class="DecNumber">1</span></pre>
  740. </dd>
  741. <a id="z18.m"></a>
  742. <dt><pre><span class="Keyword">macro</span> <a href="#z18.m"><span class="Identifier">z18</span></a><span class="Other">(</span><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">int</span></pre></dt>
  743. <dd>
  744. cz18
  745. </dd>
  746. </dl></div>
  747. <div class="section" id="18">
  748. <h1><a class="toc-backref" href="#18">Templates</a></h1>
  749. <dl class="item">
  750. <a id="fromUtils2.t"></a>
  751. <dt><pre><span class="Keyword">template</span> <a href="#fromUtils2.t"><span class="Identifier">fromUtils2</span></a><span class="Other">(</span><span class="Other">)</span></pre></dt>
  752. <dd>
  753. ok3
  754. </dd>
  755. <a id="z6t.t"></a>
  756. <dt><pre><span class="Keyword">template</span> <a href="#z6t.t"><span class="Identifier">z6t</span></a><span class="Other">(</span><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">int</span></pre></dt>
  757. <dd>
  758. cz6t
  759. </dd>
  760. <a id="foo.t,SomeType,SomeType"></a>
  761. <dt><pre><span class="Keyword">template</span> <a href="#foo.t%2CSomeType%2CSomeType"><span class="Identifier">foo</span></a><span class="Other">(</span><span class="Identifier">a</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <a href="subdir/subdir_b/utils.html#SomeType"><span class="Identifier">SomeType</span></a><span class="Other">)</span></pre></dt>
  762. <dd>
  763. This does nothing
  764. </dd>
  765. <a id="myfn.t"></a>
  766. <dt><pre><span class="Keyword">template</span> <a href="#myfn.t"><span class="Identifier">myfn</span></a><span class="Other">(</span><span class="Other">)</span></pre></dt>
  767. <dd>
  768. <p><strong class="examples_text">Example:</strong></p>
  769. <pre class="listing"><span class="Keyword">import</span><span class="Whitespace"> </span><span class="Identifier">std</span><span class="Operator">/</span><span class="Identifier">strutils</span><span class="Whitespace">
  770. </span><span class="Comment">## issue #8871 preserve formatting</span><span class="Whitespace">
  771. </span><span class="Comment">## line doc comment</span><span class="Whitespace">
  772. </span><span class="Comment"># bar</span><span class="Whitespace">
  773. </span><span class="Identifier">doAssert</span><span class="Whitespace"> </span><span class="StringLit">&quot;&apos;foo&quot;</span><span class="Whitespace"> </span><span class="Operator">==</span><span class="Whitespace"> </span><span class="StringLit">&quot;&apos;foo&quot;</span><span class="Whitespace">
  774. </span><span class="LongComment">##[
  775. foo
  776. bar
  777. ]##</span><span class="Whitespace">
  778. </span><span class="Identifier">doAssert</span><span class="Punctuation">:</span><span class="Whitespace"> </span><span class="Keyword">not</span><span class="Whitespace"> </span><span class="StringLit">&quot;foo&quot;</span><span class="Operator">.</span><span class="Identifier">startsWith</span><span class="Whitespace"> </span><span class="StringLit">&quot;ba&quot;</span><span class="Whitespace">
  779. </span><span class="Keyword">block</span><span class="Punctuation">:</span><span class="Whitespace">
  780. </span><span class="Keyword">discard</span><span class="Whitespace"> </span><span class="HexNumber">0xff</span><span class="Whitespace"> </span><span class="Comment"># elu par cette crapule</span><span class="Whitespace">
  781. </span><span class="Comment"># should be in</span></pre>should be still in
  782. </dd>
  783. <a id="z14.t"></a>
  784. <dt><pre><span class="Keyword">template</span> <a href="#z14.t"><span class="Identifier">z14</span></a><span class="Other">(</span><span class="Other">)</span></pre></dt>
  785. <dd>
  786. cz14
  787. <p><strong class="examples_text">Example:</strong></p>
  788. <pre class="listing"><span class="Keyword">discard</span></pre>
  789. </dd>
  790. <a id="z15.t"></a>
  791. <dt><pre><span class="Keyword">template</span> <a href="#z15.t"><span class="Identifier">z15</span></a><span class="Other">(</span><span class="Other">)</span></pre></dt>
  792. <dd>
  793. cz15
  794. <p><strong class="examples_text">Example:</strong></p>
  795. <pre class="listing"><span class="Keyword">discard</span></pre>
  796. <p><strong class="examples_text">Example:</strong></p>
  797. <pre class="listing"><span class="Keyword">discard</span><span class="Whitespace"> </span><span class="DecNumber">3</span></pre>
  798. <p><strong class="examples_text">Example:</strong></p>
  799. <pre class="listing"><span class="Keyword">discard</span><span class="Whitespace"> </span><span class="DecNumber">4</span></pre>ok5 ok5b
  800. <p><strong class="examples_text">Example:</strong></p>
  801. <pre class="listing"><span class="Identifier">assert</span><span class="Whitespace"> </span><span class="Identifier">true</span></pre>
  802. <p><strong class="examples_text">Example:</strong></p>
  803. <pre class="listing"><span class="Keyword">discard</span><span class="Whitespace"> </span><span class="DecNumber">1</span></pre>in or out?
  804. </dd>
  805. <a id="testNimDocTrailingExample.t"></a>
  806. <dt><pre><span class="Keyword">template</span> <a href="#testNimDocTrailingExample.t"><span class="Identifier">testNimDocTrailingExample</span></a><span class="Other">(</span><span class="Other">)</span></pre></dt>
  807. <dd>
  808. <p><strong class="examples_text">Example:</strong></p>
  809. <pre class="listing"><span class="Keyword">discard</span><span class="Whitespace"> </span><span class="DecNumber">2</span></pre>
  810. </dd>
  811. </dl></div>
  812. </div>
  813. </div>
  814. <div class="row">
  815. <div class="twelve-columns footer">
  816. <span class="nim-sprite"></span>
  817. <br/>
  818. <small style="color: var(--hint);">Made with Nim. Generated: 1970-01-02 03:46:40 UTC</small>
  819. </div>
  820. </div>
  821. </div>
  822. </div>
  823. </body>
  824. </html>