-
Can we use nim complier as library (runtime rather than compiletime) to parse edge case statements? Like in the example below, there is a if expression. In theory, we can create a shared library, in w…
-
This is a general issue for packages that should be in package CI until the situation has sufficiently improved, suggestions would be appreciated.
The release of 2.2 was delayed quite a bit by brea…
-
### Example
```nim
import macros
proc thing(s: string) =
echo s
template dotemplate(name) =
thing(name)
macro dothings(site: varargs[untyped]): untyped =
let name = site.lineInfoOb…
-
.nimble:
```nim
requires "nim >= 1.6.16",
"compiler"
```
```sh
nimble setup -l
Warning: Using project local deps mode
Info: using /home/arnetheduck/src/nimph/nimbledeps/pkg…
-
### Example
```nim
var x, y {.compile_time.}: seq[seq[int]]
macro foo = y.add @[]
foo
```
### Current Output
```
/usercode/in.nim(7, 1) template/generic instantiation of `foo` from here
…
-
Here are a couple errors I'm getting. On my mac, I'm getting an error on installation of `futhark`. On replit, I'm getting an error trying to use it.
# mac
I'm on macOS Monterey 12.6.3
Error…
-
### Description
Segmentation fault encountered when cross compiling for arm(cortex-a53).
### Nim Version
Nim Compiler Version 2.1.1 [Linux: amd64]
Compiled at 2024-07-07
Copyright (c) 2006-…
-
### Description
test.nim:
```nim
let sp = @[1, 2]
echo sp[1]
```
`$ nim cpp -f test.nim`
```
/Users/niv/.cache/nim/test_d/@mtest.nim.cpp:146:11: warning: array index 1 is past the end …
-
`varargs[typed]` as macro parameter type doesn't accept a `NimNode` of kind `nnkClosedSymChoice` but just a parameter type of `typed` does.
### Example
```nim
import macros
macro typedVarargs(…
ynfle updated
3 weeks ago
-
On my Linux Mint 21.3 machine I tried install nimlangserver as follows in my terminal:
$ nimble --verbose install nimlangserver
The result is:
##################################################…