I switched using choosenim to nim 2.0.0 and it works. :-( Weird. Maybe because
I installed before that nim 2.0.0 using a package manager instead of choosenim?
case closed.
Is it because of nim on vscodium (vscode)? or something related to EndeavourOS?
Thank you for your reply. I reported that and the reply is that the updated
package in the unstable channel and soon will be available I guess. :-)
<https://forum.manjaro.org/t/bug-report-new-package-nim-2-0-using-new-package-management-rules/148311/2?u=levlan>
I use Manjaro linux distribution and updated nim through Manjaro's package
manager (pamac).
When I try to run a program, I get error: Error: cannot open
'/usr/lib/nim/lib/system.nim
I checked and 'system.nim' is on '/usr/lib/nim/system.nim' path, not as where
vscodium is searching.
Thank you :-)
i hoped there is a library i can import and avoid writing the code by myself.
how can I solve cubic equation in nim or by using a library from another
language? looking for the most simple solution.
ok. thanks.
I know that int alone is int64 cause int is defined to be as the size of a
pointer and int64 is not allowed as written in the tutorial. So it seems i need
to write the first number's type in the set explicitly to define the sets type.
Hello I'm trying to create a set using this line:
var s: set[int16] = {2, 7, 8, 9, 10}
Run
and i get error saying:
Error: type mismatch: got but expected
'set[uint16]'
Run
I tried to read the explanation in the tutorial but i can't get to
Ok. Thank you.
I know there is a table in Nim which is almost similar to a dictionary in
Python. But if i'm not wrong, a table can hold only same type of key:value
pairs while in Python a dictionary can hold all kinds of key:value pairs inside
it.
We are the Knights Who Say "Ni(m)".
[https://www.youtube.com/watch?v=zIV4poUZAQo](https://www.youtube.com/watch?v=zIV4poUZAQo)
I'll give that a try. I'm still new to Nim.
This is the code example. if i omit the pragma "{.exportpy.}", the code
compiles. but for nimpy i need to add that pragma and then the code doesn't
compile. The compile error i get is : **Error: invalid type: 'var
seq[Table[system.int, system.int]]' for var**
import nimpy
impor
15 matches
Mail list logo