> 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.
but my config file says " #gcc.path = r"$nimdistmingwbin""
> 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.
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
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
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?
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])
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.
OK. Would you mind posting a note here when you do so? I will update the
formula accordingly.
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.
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.
The library is now available through nimble.
I was going to buy it, but the chapter that I wanted is now cancelled.
13 matches
Mail list logo