There is a problem in password reset

2018-07-18 Thread emekoi
sugar.nim is a part of the stdlib in devel version of nim. to get you need to build the latest version of nim(0.18.1).

Re: nimvm echos do not appear

2018-08-11 Thread emekoi
you need to put the echo in a static block so it's run at compile time: when nimvm: static: echo "compiling..." else: echo "running..." Run

Re: nimvm echos do not appear

2018-08-11 Thread emekoi
i would think that nimvm being true means that the vm is running that section of code. static blocks don't tell you anything about your code except that it run at compile time instead of normal run time.

Re: How do you gracefully stop the compiler?

2018-08-11 Thread emekoi
`static: echo "compiling..." proc display[T](message: T) = when not (T is string): {.fatal: "T is not a string".} echo message # works display[string]("hello") # fatal error, compilation aborted # display[int](5) ` Run

Re: Can you leave a link to download the Nim in Action book in pdf / djvu format?

2018-08-12 Thread emekoi
that may be true, but the question is where you get that BTC.

Re: for loop with more items

2018-08-16 Thread emekoi
the for loop is iterating over the array and not the ranges in the array. afaik you can't iterate over two ranges like that in nim.

Re: Cross-compiling [Win->Lin]

2018-08-17 Thread emekoi
you'll need a cross compiling toolchain. afaik mingw can't compile from windows to linux, although it works the other way around.

Re: Supress errors

2018-08-17 Thread emekoi
if your errors are from exceptions then just find where your exceptions are being thrown and wrap them in a `try: #[your code here]# except: discard`.

Re: Is .cfg cross-compilation still supported?

2018-09-08 Thread emekoi
what platform are you own?

Re: Is .cfg cross-compilation still supported?

2018-09-09 Thread emekoi
you can just do: gcc.path = "/usr/bin" gcc.exe = "arm-linux-gcc" gcc.linkerexe = "arm-linux-gcc" Run but it's less flexible.

Re: Globally-invoked macros

2018-07-21 Thread emekoi
can't you just do this? # a.nim macro implementRecur*(n: untyped): untyped = ## Allows functions to refer to themself by calling ``recur()`` ## To suppress this behavior, annotate the function with ``{.literalRecur.}`` ... # b.nim import a

Re: Next release? (re: bioconda)

2018-08-04 Thread emekoi
it's called semantic versioning or semver for short.