Hello,
i really like OOP macro from
[https://github.com/jyapayne/nim-extensions](https://github.com/jyapayne/nim-extensions).
There are so far two problems
* Cant figure out how should i define class as exported however this is kinda
solvable by changing oop.nim code to export all
* Second is worse, probably due to some namespace magic importing class from
other module doesnt work
Example:
#test_class.nim
import oop
class MyClass:
var
value: int
method init*(value: int){.base.}=
self.value = value
method print{.base.}=
echo self.value
Run
#main.nim
from test_class import MyClass
var m : MyClass;
m = new MyClass(value:111)
m.print()
Run
Compiler reports **main.nim(5, 16) Error: the field 'value' is not accessible.**
What am i missing? Thanks alot.