IndexError: list index out of range

2022-09-25 Thread polskyedd
This error basically means you are trying to access a value at a List index which is out of bounds i.e greater than the last index of the list or less than the least index in the list. So the first element is 0, second is 1, so on. So if there are n elements in a python list, the last element is

Cross-Compiling gintro/GTK4

2022-09-25 Thread Stefan_Salewski
> If I run the file on Windows 7 I get the error "could not load > libglib-2.0.so.0". Seems to be obvious: A "nimble install gintro" behaves very different on Mac, Linux and Windows. One important point is, that on Windows dynamic libraries may have the extension dll, while on Linux extension i

Cross-Compiling gintro/GTK4

2022-09-25 Thread Oliver
I'm new to NIM and I want to find out if it fits my needs. I use Ubuntu-Linux and tried to cross-compile a gtk4-file for Windows (I followed the instructions from and ). I installe

To `ref` or not to `ref` on embedded?

2022-09-25 Thread Stefan_Salewski
> Usually the best performance can be found by getting in the habit of using > var in proc arguments for arrays or struct. Using var openArray[T] with T > being non-ref objects generally gives good performance. Ref objects can be > useful if you can't use var due to code constraints. Advertisin