Re: Modified version of Kru02's interfaced

2019-01-17 Thread slangmgh
The following post have detailed explanation of Go interface. [https://forum.nim-lang.org/t/2422](https://forum.nim-lang.org/t/2422)

Re: Modified version of Kru02's interfaced

2019-01-17 Thread slangmgh
Current implementation doesn't support generic, because the vtable must be build at compile time when impl is called, but with generic, this is not possible, maybe we need the compiler to do it. :)

Re: Modified version of Kru02's interfaced

2019-01-17 Thread kaushalmodi
I am not familiar with Go interfaces. Can you please add a README that briefly explains what your module is doing, and add few examples too? I see that you have an example.nim, may be put that inline in your README and explain that a little bit? Thanks.

Re: Modified version of Kru02's interfaced

2019-01-17 Thread boia01
That's a great set of improvements! Kudos. One thing I wanted to share -- to stimulate further improvements -- is that when I looked at interfaced earlier, I ended up passing up on it because it's not possible to provide type parameters for the interface itself, and for interface methods. This

Re: Modified version of Kru02's interfaced

2019-01-17 Thread slangmgh
Here is the source: [https://github.com/slangmgh/interfaced](https://github.com/slangmgh/interfaced)

Modified version of Kru02's interfaced

2019-01-17 Thread slangmgh
I have created a modified version of Kru02's interfaced. The original post is here: [https://forum.nim-lang.org/t/2422](https://forum.nim-lang.org/t/2422) This version include more feature: 1. interface can inherited from other interfaces 2. interface to base interface can be conv