Re: Unable to compile with latest nim version

2016-10-27 Thread dom96
> but my config file says " #gcc.path = r"$nimdistmingwbin"" The `#` means that this line is commented out. I'm pretty sure that the zips don't include MinGW, just install a newer one.

Re: Unable to compile with latest nim version

2016-10-27 Thread rishavs
but my config file says " #gcc.path = r"$nimdistmingwbin""

Re: Unable to compile with latest nim version

2016-10-27 Thread Araq
> Using the zip gives me error with mingw (incompatible version). Well that seems to be the problem then? You have some outdated GCC in your PATH.

Unable to compile with latest nim version

2016-10-27 Thread rishavs
Hi I installed the new version 15.2 via installer and I am unable to compile . PS C:\Users\rsharan\Desktop> nim c -r test.nim Hint: used config file 'C:\Program Files\Nim\config\nim.cfg' [Conf] Hint: system [Processing] Hint: test [Processing] CC: test Hint: [Lin

Re: Generic openarray param

2016-10-27 Thread Araq
No, the compiler is correct. An array is _convertible_ to an openarray, and convertible doesn't match as good as a simple generic match. For specialization use something like: proc test[T, I](x: array[I, T]) = for i in x: echo i

Re: Generic openarray param

2016-10-27 Thread Javi
Thank you Jester. But I meant if it's possible keep both functions, similar to template specialization for function overloading in C++. I think the Nim compiler should make the call to the second "test" proc as a specialization of the first proc, no?

Re: Generic openarray param

2016-10-27 Thread jester
Probably a better way but this works for me proc test[T](x:varargs[T]) = for i in x: echo i test(1) test([1,2,3])

Generic openarray param

2016-10-27 Thread Javi
Hi, Is there any way in Nim to solve this? Or is a bug? proc test[T](x: T) = echo x proc test[T](x: openarray[T]) = for i in x: echo i test([1, 2, 3]) It does not compile because the first "test" proc is called instead of the second.

Re: HomeBrew + Nim Tools (nimble, nimsuggest)

2016-10-27 Thread ysalmi
OK. Would you mind posting a note here when you do so? I will update the formula accordingly.

Re: HomeBrew + Nim Tools (nimble, nimsuggest)

2016-10-27 Thread Araq
Nah, instead I will move nimsuggest to `$nim/tools`. nimsuggest doesn't have its own release cycle and I only want it in a separate repo so that it has its own issue tracker. nimsuggest is too tied to the compiler.

Re: HomeBrew + Nim Tools (nimble, nimsuggest)

2016-10-27 Thread ysalmi
OK, I have submitted a new patch fixing the formula by grabbing nimble and nimsuggest source. I'll post a link once it's approved by the Homebrew maintainers. @Araq: is there any possibility of tagging a nimsuggest release? Right now I have to link to a specific commit, it's kind of ugly.

Re: Beaglegone Black with Nim

2016-10-27 Thread xyz32
The library is now available through nimble.

Re: Nim in Action is now available!

2016-10-27 Thread Atlas
I was going to buy it, but the chapter that I wanted is now cancelled.