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...
### Description The following example produces a compilation error. ```nim type Comparable = concept proc `
### Description When recompile code with changing build mode without changing code 3 times, third rebuild doesn't update the executable file. Example code to see build mode. testbuild.nim: ```nim when...
A macro generating a function fails with `got: but expected: `. ### Example ```nim import macros type MyModel[T] = object discard macro network*(): untyped = let underlyingTypeSymbol = ident"S" var...
### Example ```nim import macros type Past[Z] = object OpenObject = object macro rewriter(prc: untyped): untyped = prc.body.add(nnkCall.newTree( prc.params[0] )) prc macro macroAsync(name, restype: untyped): untyped = quote do: proc...
The following snippet doesn't compile, but should: ```nim type Matrix[T] = object data: T proc randMatrix*[T](m, n: int, max: T): Matrix[T] = discard proc randMatrix*[T](m, n: int, x: Slice[T]): Matrix[T]...
### Description ```nim type Result[T, E] = object func value*[T, E](self: Result[T, E]): T {.inline.} = discard func value*[T: not void, E](self: var Result[T, E]): var T {.inline.} = discard...
#23992 The test case provided does not cover the Windows situation, I fixed it in this new PR. Fixed an issue where errorCode was always 0 when startProcess didn't use...
When generating a header with `--header` and then using it from another Nim project to import the generated types, generic instances can collide and produce an error. i.e. `typedef MyGeneric[TypeA]...
Fix https://github.com/nim-lang/Nim/issues/19619 Alternative to https://github.com/nim-lang/Nim/pull/19620 Let's see what it breaks
### Description ```nim proc test[x: static bool]( t: ( when x: int else: float ) ) = discard ``` ### Nim Version Nim Compiler Version 2.1.1 [Linux: amd64] Compiled at...