Open diehlpk opened 4 years ago
This is not supported (yet), as we don't support classes at all.
We should implement this instead:
from phylanx import Phylanx
@Phylanx
class test:
n = 0
def __init__(self,n):
self.n = n
def do(self,m):
self.n += m
if __name__ == "__main__":
t = test(10)
t.do(10)
I was wondering if we can get this example to work in a near future
Or at least make some comment in the Readme that this is not supported yet