Re: Bug in strutils delete?

2019-06-18 Thread miran
> Any thoughts? This is a bug. I'll fix it.

Bug in strutils delete?

2019-06-18 Thread KevinG
Seems to me that there is a bug in delete in strutils if the last parameter is bigger than the length of the string. To demonstrate, this first example prints 'kev' as you would expect: var s : string s = "kevin" s.delete(3, 4) echo s Run But if I change

Simple coroutine like Python generator send()?

2019-06-18 Thread tomyun
I'm trying to learn Nim by translating existing Python code and one area I got stuck is to come up with simple coroutines. In Python, you can send back a value to the generator which can receive the value from yield statement. I found Nim has coro standard module for coroutines, but I'd be more

Re: C and C++ FFI: const returns

2019-06-18 Thread Araq
I usually ignore the `const`. :-)

Use Nim on Google Colaboratory with Nim4Colab

2019-06-18 Thread demotomohiro
[Nim4Colab repository](https://github.com/demotomohiro/nim4colab) [My blog post](https://internet-of-tomohiro.netlify.com/google_colab/nim4colab.en.html) You can use [Nim](https://forum.nim-lang.org/postActivity.xml#nim) language on [Google Colaboratory](https://colab.research.google.com/) by u

C and C++ FFI: const returns

2019-06-18 Thread trtt
What can we do? Ignore the C++ const? Create a different wrapper object for the mutable and immutable parts? Set a bit for constness in the wrapper object?

Re: Nim and function hooking

2019-06-18 Thread rokups
So how does Nim free memory when \--newruntime -d:useMalloc are used? Is it some kind of ref-counted gc based on destructors? That would be perfect for hooking usecase.

Re: Sponsors page bugged?

2019-06-18 Thread tomhardy
Hey, I have a thought, if you faced that type of bug related problem then you will do one thing just browse some review and that will be fine for all. Also, use a router and by this, you will get a strong network and by which your problem will be solved properly. If you need any information abou