Nim
Nim copied to clipboard
Nim is a statically typed compiled systems programming language. It combines successful concepts from mature languages like Python, Ada and Modula. Its design focuses on efficiency, expressiveness, an...
1. `nim doc` fails to run when nimdoc.css is not found. The error message does not indicate how to configure the correct path 1. There is no mention of the...
[playground](https://play.nim-lang.org/#ix=46wk) ### Example ```nim proc `==`[T](a, b: set[T]): bool = debugEcho (a.card, b.card) debugEcho (a, b) debugEcho "---" #
```nim # mymod.nim echo "hi" ``` ```nim # test.nim {.emit:""" #include """.} proc test() = var hDLL: pointer {.emit: """ hDLL = LoadLibraryEx("\\mymod.dll", NULL, LOAD_LIBRARY_SEARCH_DEFAULT_DIRS | LOAD_LIBRARY_SEARCH_DLL_LOAD_DIR); """.} echo "isNil:...
```nim type Matrix[M,N: static[int]; T: SomeFloat] = distinct array[0..(M*N - 1), T] let a = new Matrix[2,2,float] let b = new Matrix[2,1,float] proc foo[M,N: static[int],T](a: ref Matrix[M, N, T], b:...
Converting a large positive floating point number to an integer can result in a large negative integer. ### Example ```nim let l = int.high echo l echo l.float.int ``` https://play.nim-lang.org/#ix=45QL...
Not sure what stage exactly fails, but here's the minimal reproducing code: ### Example ```nim var A {.compileTime.}: int B {.compileTime.}: int template assHook{a = b}[T](a: T; b: T)= echo...
(Consider writing a PR targetting devel branch after filing this, see [contributing.html](https://nim-lang.github.io/Nim/contributing.html)). multisync macro does not resolve tuples and complex return values ### Example ```nim import asyncdispatch type Sync =...
It seems that unsigned integers are cast to signed integers when they are not first bound to a variable, but only sometimes. This is probably a bug, or at least...
repr does not compile with {.experimental: "views".} ### Example ```nim {.experimental: "views".} var oa = toOpenArray("abc", 0, 2) echo oa.repr ``` ### Current Output ``` nim c reprfail.nim Hint: used...