Win nim included dlls fail to load

2022-06-08 Thread treeform
Strange error, Nim ships 64 bit dlls. I had other strange errors with zlib1.dll in the past... Maybe give a try? (It beats zlib in most case). It's in pure Nim and requires no dlls.

Nim producing void as template argument instead of the type

2022-06-08 Thread jmgomez
Awesome, thanks! Didn't see that part of the docs until now. I just assumed the number were referring to the template args in Nim. Thanks again!

Win nim included dlls fail to load

2022-06-08 Thread ggibson
What am I doing wrong? Trying to use std/zip, and `zlib1.dll` is required. When I put `zlib1.dll` and my exe in the same place and run, I get could not load: zlib1.dll (bad format; library may be wrong architecture) Run > What gives? Win11 64-bit. Compiled exe w/ `

Nim producing void as template argument instead of the type

2022-06-08 Thread shirleyquirk
The '0 means take the return value, which is void. God I hate RST so much I can't seem to post the right answer but it's single quote asterisk three

Cursed: Working braces in Nim

2022-06-08 Thread xigoi
Warning: may cause self-inflicted loss of eyesight import std/macros import std/sequtils macro If(stuff) = stuff.expectKind(nnkCommand) stuff[0].expectKind(nnkPar) stuff[1].expectKind(nnkCurly) let cond = stuff[0] let body = newStmtList(stuff

GUI: Nim + QML unable to compile

2022-06-08 Thread noxnivi
Good day @filcuc, Thanks for the tips. It finally worked by copying the DOtherside to /usr/lib. Besides I had to install qt5-quickcontrols, that wasn't installed. qt5-quickcontrols2 was installed but was not enough. Once these two things fixed, the simple helloworld window worked. Now I can get

Nim producing void as template argument instead of the type

2022-06-08 Thread jmgomez
Hey guys, I have this bind: proc setPropertyValuePtr*[T](property:FPropertyPtr, container : pointer, value : ptr T) : void {.importcpp: "SetPropertyValuePtr<'0>(@)", header:"UPropertyCaller.h".} Run And using it like so: setPropertyValuePtr[FString](pro

'import os' not used. Wrong Error Message

2022-06-08 Thread Clavismax
Thank you, that helps me.

Understand C++ binding with OpenCV.

2022-06-08 Thread k0zmo
Quite frankly - I don't know. Looking at the compiler code ([pragmas.nim](https://github.com/nim-lang/Nim/blob/415689323c625afb7d39d923c4165a541beb9927/compiler/pragmas.nim#L1083) and [extccomp.nim](https://github.com/nim-lang/Nim/blob/415689323c625afb7d39d923c4165a541beb9927/compiler/extccomp.n

'import os' not used. Wrong Error Message

2022-06-08 Thread SolitudeSF
its not really used. if you remove the os import, you still have a valid program. you are just checking if symbol is available, you are not requiring it. mark import as `{.used.}`.