-
I couldn't really think of a better title (why do I always run into the weirdest bugs), so here's an example:
### Example
```nim
type
A = object
B = object
proc f(a: A) = discard
proc…
-
trying to generate a wrapper for flecs (https://github.com/SanderMertens/flecs)
directory looks like this
```
root /
wrap_flecs.nim
flecs /
flecs.c
flecs.h
libflec…
-
Unhandled sysFatal from top level scope can crash the repl:
```
%zsh> inim
👑 INim 0.6.1
Nim Compiler Version 1.6.0 [Linux: amd64] at /usr/bin/nim
nim> var s = newSeq[int](5)
nim> s[5] = 42
fa…
-
### Example
```nim
# a.nim
template aPragma*() = ...
# b.nim
import a
proc b() {.aPragma.} = ...
```
I also tried"
```nim
proc b() {.a.aPragma.} = ...
```
### Current Output
```
…
-
### Description
I've been trying to use some functional style programming to access type lifted into `Option`.
```nim
import sugar
p.localNode.address.map((a) => $a.port).get("0")
# where
ad…
-
### 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
…
-
### Description
The following example produces a compilation error.
```nim
type
Comparable = concept
proc `
-
I get a compilation error when compiling examples from the examples folder:
`C:\Users\user\nimqt\examples>nim cpp -r hello.nim
Hint: used config file 'D:\nim-2.0.2\config\nim.cfg' [Conf]
Hint: used…
-
```
Traceback (most recent call last)
website.nim(1186) website
asyncio.nim(631) poll
asyncio.nim(212) asyncSockHandleRead
website.nim(143) :anonymous
website.nim(664) …
dom96 updated
10 years ago
-
### 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…