-
### Description
I tried to load a dynamic library (dll), when I made it from Linux with the exported DllMain like this
```nim
import winim/lean
proc NimMain() {.cdecl,importc.}
proc DllMain(h…
-
The manual vaguely implies that module names should follow identifier equality rules (so, partial case-insensitivity and underscore is ignored).
> A valid module name can only be a valid Nim identi…
-
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…
-
```nim
import typetraits
type Uint24* = range[0'u32 .. 0xFFFFFF'u32]
proc a(v: SomeInteger|Uint24) = echo type(v)
a(42)
a(42.Uint24)
```
```
[arnetheduck@tempus tmp]$ nim c -r test.nim
…
-
### Description
The following program cannot be compiled
```nim
type
SharedPtr[T] = object
p: ptr T
proc `=destroy`[T](self: var SharedPtr[T]) =
discard
type
SomethingObj[T] =…
-
the compiler gives **type mismatch** error for slicing in `collect` macro
### Example
```nim
import tables, sugar
const document = ["this", "is a", "sequence", "of strings"]
let table1 = coll…
-
### Description
The `callOperator` fails to bind when the usage and declaration are spread across two different files. For example:
```nim
##
## myLib.nim
##
type
Functor* = ref object
…
Nycto updated
2 months ago
-
### Example
```nim
import streams
template testStream(arg: untyped): untyped =
var ss = newStringStream()
ss.write(arg)
ss.flush()
echo ss.data
let
ary = ['N', 'i', 'm', ' ', 'l…
-
Library fails to build for example from the main github page:
```nim
# File: main.nim
import nimx/window
import nimx/text_field
proc startApp() =
# First create a window. Window is the roo…
-
Using a `map` function with a variable under `walkDirRec` iterator caused a compile error.
### Example
The below snippet itself does not make sense because I made up it for reproducing the problem…