interfaced
interfaced copied to clipboard
Can't run test: ```shell $ nim c -r test Hint: used config file '/opt/homebrew/Cellar/nim/1.6.0/nim/config/nim.cfg' [Conf] Hint: used config file '/opt/homebrew/Cellar/nim/1.6.0/nim/config/config.nims' [Conf] ............................................................ /tmp/interfaced/interfaced.nim(54, 20) Error: internal error: environment misses: this...
Just a proposal, would this [change](https://github.com/notTito/nim-100days/blob/master/vtables/vshapes.nim) make any sense? It basically avoids the intermediate anonymous proc but procs need to accept a ptr to an object.
See here: https://github.com/nim-lang/Nim/issues/7497#issuecomment-378652626 > @andreaferretti whay are there ref types? I made sure that you don't need ref types for the interfaces. > >Aparently the inteface libary has been spoiled...