-
### Description
```nim
proc y(n: ref int) = discard
proc w(n: ref int) =
iterator a(): int = y(n)
let x = a
w(nil)
```
### Nim Version
```
Nim Compiler Version 1.6.10 [Linux: amd64]
…
-
I get the following error when trying to use the [nimrod](http://nimrod-code.org/) compiler on Windows (it works fine on other platforms):
```
[ ] 0%.tup/tmp/output-98: Broken pipe
tup error: Unabl…
-
The following code;
```nim
type Reader = ref object of RootObj
method readRow*(o: var Reader) {.base.} =
return
type TransReader = ref object of Reader
proc init(o: var TransReader, fn…
-
Compiler for the Nim language.
Ideally a recent version, like http://packages.ubuntu.com/xenial/nim
-
## Preface
Assuming you have the `sdl2` and `perlin` packages installed:
- install commit `46e66e41f7205b9f7f292d5fb27d68961517abeb` of https://github.com/dustinlacewell/dadren with `nimble inst…
-
### Description
Compile unable to find proper declarations for callback types.
If you uncomment `addRoute1` call in the provided example compiler will fail with an error:
```
test1.nim(55, 12) Err…
-
```nim
proc FP[T](A: var openArray[T], myCmp : proc(x,y:T):T): int =
1
proc FS[T](A: var openArray[T], myCmp : proc(x,y:T):T = system.cmp[T]): int =
result= FP(A, myCmp)
const
N= 6
…
-
### Description
```nim
proc n() = discard
proc n(g: int|int) = n()
```
### Nim Version
```
Nim Compiler Version 1.6.20 [Linux: amd64]
Compiled at 2024-03-20
Copyright (c) 2006-2023 by Andreas…
-
### Description
```nim
type U = object
h: bool
type K = object
case h: bool
of true, false: g: int
let x = default(U)
block:
# This does build
let v = x.h
case v
of tru…
-
It is a bit difficult to explain this tiny issue. At least I think it is an issue, as I have no idea what I might have done wrong.
My two pages
https://nimprogramming.com/ and https://nimprogram…