Need example of awaitAny()

2017-08-01 Thread cdunn2001
awaitAny() takes openarray[FlowVarBase]. It rejects seq[FlowVar[T]]. But the caret operator expects FlowVar[T]. So how can I use awaitAny() and then get the data from the actual FlowVar[T]? Could someone point me to a simple example?

Re: thounghs about Nim language in godot

2017-08-01 Thread DTxplorer
Hi Tiberium. I installed godot-nim using "nimble install godot" command succesfully but with this warning. Warning: File 'apigen.nim' inside package 'godot' is outside of the permitted namespace, should be inside a directory named 'godot' but is in a directory named 'apigen'

Re: Gdb pretty printers for nim

2017-08-01 Thread cdome
Thanks Krux02, I have tried it, it works as intended for strings and I couldn't make it to work for anything else. Names of the types is not sufficient indicator to determine whether it is enum, union, set and etc. What is probably I am after is compiler generates some useful file that python

Re: thounghs about Nim language in godot

2017-08-01 Thread Tiberium
DTxplorer, you need to install godot-nim package itself first

Nimgame2 > could not import: SDL_RenderSetIntegerScale

2017-08-01 Thread Antic
Dear all, i am new to nim and tried to install nimgame2 via nimble. Installation looks fine, but when i compile and run a "demo" (from nimgame github) i get "could not import: SDL_RenderSetIntegerScale". $ nimble list -i Warning: Installed package 'sdl2_nim@#head' is outdated or corrupt.

Re: Nim in Action book

2017-08-01 Thread IronHawk
Thanks a lot! Didn't notice this post, sorry.

Re: Nim in Action book

2017-08-01 Thread cdome
He has already answered in a different thread [https://forum.nim-lang.org/t/3069](https://forum.nim-lang.org/t/3069)

Re: Nimgame 2

2017-08-01 Thread Vladar
**v0.5 alpha** [released](https://vladar4.github.io/nimgame2/index.html) along with [sdl2_nim v2.0.5.0](https://github.com/Vladar4/sdl2_nim/). * * * **New stuff:** * changed physics and logic systems * platformer physics * CoordInt type * now collider module is autmatically included

Nim in Action book

2017-08-01 Thread IronHawk
Hi all! Every month the book is delayed to next month. Now delayed to August and the date of publication is still estimated. The question is mainly to Dominik but (I hope) many people interested in answer to this: [what's a current situation with the

Re: thounghs about Nim language in godot

2017-08-01 Thread DTxplorer
I try to follow instructions from the project examples [https://github.com/pragmagic/godot-nim/tree/master/examples/stub](https://github.com/pragmagic/godot-nim/tree/master/examples/stub) but when I run nake build nakefile.nim(5, 8) Error: cannot open 'godotapigen'