-
Consider the following program:
```nim
type
Bytes = seq[byte]
RedBytes = distinct Bytes
GreenBytes[T] = distinct Bytes
proc worksWithGreenBytes[T](data: var GreenBytes[T]) =
Bytes(d…
-
`--path` doesn't work well when given a relative path in some cases at least; eg `--path:.` (or `--path:compiler/..`) fails below (down the line, not immediately) whereas `--path:$(pwd)` (or using exp…
-
## Information
I'm using Nim with the commit hash `684a862526847c39597e345d00b8323353012c07` from the develop branch and i've compiled the language server so i could use it with the Nimsaem extension…
-
### Xmake Version
xmake v2.9.5+HEAD.d30de52e9
### Operating System Version and Architecture
Windows 10 19045.2846
### Describe Bug
When attempting to build a project using C++20 modules with the …
-
### Description
Running `nimble install nim@1.6.12` fails to build.
### Nim Version
Tried installing it with both Nim 1.6.10 and 1.6.12. I've also got failures trying `nimble install nim@#head`,…
-
### Example
```nim
import macros
macro foo(): untyped =
let env = nskType.genSym"Env"
result = quote:
type `env` = ref object of RootObj
proc foobar(e: `env`) = discard
m…
-
### Example
```nim
import macros
macro foo(x: static[int], n: typed): untyped =
result = n
if result.kind in RoutineNodes:
echo "foo on ", result.name, ", x: ", x
else:
echo "f…
-
See the code in ``compiler/past.nim`` and ``compiler/bitabs.nim`` for a rather precise outline of the structure. The plan is to use ``NimTree`` throughout the compiler which is a linearized representa…
-
### Description
The following snippet doesn't compile:
```nim
func what[T](): T =
discard
type MyObject[T] = object
f: T = what[T]()
var m: MyObject[float] = MyObject[float]()
echo…
-
Hi,
i'd like to use the nim-parser as a lib. I noticed that `NimNode` seems almost identical to `PNode` which is used in nims parser modules. Finally you mentioned `macros2` as a solution to use th…