* kochdocs.nim: code cleanup * docgen: nicer indentation * parser.nim: code cleanup * fixes #10458 * make tests green again * make =destroy mixins * gc:destructors: produced C code is almost working * --gc:destructors simple program compiles (but leaks memory) * gc:destructors make examples compile in C++ mode * destructors: string implementation bugfixes * strs.nim: minor code cleanup * destructors: builtin seqs are beginning to work * remove debugging helpers
7 lines
320 B
Nim
7 lines
320 B
Nim
# imported by other modules, unlike helpers.nim which is included
|
|
|
|
template formatErrorIndexBound*[T](i, a, b: T): string =
|
|
"index out of bounds: (a: " & $a & ") <= (i: " & $i & ") <= (b: " & $b & ") "
|
|
|
|
template formatErrorIndexBound*[T](i, n: T): string =
|
|
"index out of bounds: (i: " & $i & ") <= (n: " & $n & ") "
|