Re: OOP question

2020-04-11 Thread tanguymario
Thank you very much!

Re: OOP question

2020-04-11 Thread mratsim
Also note that traditional OOP languages do not have multiple dispatch so what you are trying would not be possible in C++ or Java.

Re: OOP question

2020-04-10 Thread Stefan_Salewski
See the Nin manual, section [https://nim-lang.org/docs/manual.html#multiminusmethods](https://nim-lang.org/docs/manual.html#multiminusmethods) Note: Starting from Nim 0.20, to use multi-methods one must explicitly pass --multimethods:on when compiling.

OOP question

2020-04-10 Thread tanguymario
Hello, I am quite new to nim language and started to develop a graphic app in web (using canvas / webgl). I know nim is not OOP based but I still tried to achieve OOP using 'method'. But when I use two arguments using 'method' it does not work.. Am I wrong ? Or would there be better ways to