Unfortunately not, but others have suggested this so perhaps it is a good idea
to make a more generalised `recvLine`. Could you create an issue for this
please?
**Libman**, I was actually looking for some mostly straight (SDL2, SFML etc. is
OK) nim game engine, not using a pre-built engine. **Vladar**, I can't wait!
I'll be checking the forums!
@alexsad disable GC, it's ok,but physics memory limited
I think you need to use a Template or an anonymous function to do what you want:
template testA[T](a: T, action: untyped, b: T): T = action(a,b)
echo testA(1, `xor`, 2)
proc testB[T](a: T, action: proc(a,b: T):T , b: T): T = action(a,b)
echo testB(1, proc(a, b: int):
Usually, you would define `action` as `proc(l,r: T): T`. But this does not work
for `xor` because of this paragraph in the manual ([see
also](https://github.com/nim-lang/Nim/issues/2172)):
> Assigning/passing a procedure to a procedural variable is only allowed if one
> of the following conditi
I could not find any example but this is the sort of thing I want to get
working:
proc bitWise*[T](buff: openArray[T], action: expr, mask: openArray[T]):
seq[T] =
var c = items #or some custom iterator
result = buff.mapMe(it action c(mask)) # mapMe is an openArray fr
so the strength of the fiber decreases, because the coating on the
fiber surface coated with a layer of PP simple molecules, but PP does not react
with the cellulose does not affect the molecular structure of the fiber,http://durablewpcfloor.com/blog/4032.html";>non](http://forum.nim-lang.org///
@bpr
> That sounds like an anti-feature to me, kind of like the anti-feature of
> Python (discussed on another thread here) that allows one to add object
> attributes at any time.
In Scala, Rust and more modern language, you can change external variable in
funcational programming.
And, this i
@Krux02
> Yes, and you are ignorant to learn about them.
HAHA. I don't learn about Golang because Golang is a lousy language.
There are so many good languages better than Golang: C, Nim, Rust, Erlang,
Scala, Java, Scheme.
> Yes, live with it.
"Pure function" are not realistic. Did you know Li
I haven't dabbled in game programming since the 90s, but a quick look at [the
list of available engines](https://en.wikipedia.org/wiki/List_of_game_engines)
shows many choices. I hope the Nim game dev ecosystem picks a good
[Copyfree-licensed](http://forum.nim-lang.org///copyfree.org/standard/li
GoLang compilation recently took a big hit (2x to 10x slower for various apps)
when the compiler was re-written from C to bootstrapped Go. Rob Pike was
concerned, which I think is a good sign. With Go-1.7, it is almost as fast as
1.5 again.
D2 on the other hand, though still fast, is quite a bi
I also asked @Araq to make verbosity:0 really quiet. There is also still output
"CC module" which can't be silenced by hint switching. Maybe some solution
comes to devel soon!
@OderWat: Thanks for the PR!
I didn't think about tempnames, I guess I got lucky ( or I just didn't notice
the bug ).
As per disabling `hint[Processing]`, I am on Windows 10 64-bit, and it's still
not silent. I guess it's similar to
[http://forum.nim-lang.org/t/2350/1](http://forum.nim-lang.or
13 matches
Mail list logo