You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
typeTestType=refobjectofPyNimObjectExperimental
name: string
age: int
in pylib.nim
I can neither do
tt = pylib.TestType("John Doe", 100)
nor
procnew_TestType(n: string, a: int): TestType {.exportpy.} =returnTestType(name: n, age: a)
This is a much awaited feature for me and I understand this might still be incompletely implemented at this point.
Are getters and setters the only way to construct objects? Or am I doing something wrong? I get no compile errors.
new_TestType throws
SIGSEGV: Illegal storage access. (Attempt to read from nil?)
at runtime from Python.
The text was updated successfully, but these errors were encountered:
For the type
in pylib.nim
I can neither do
nor
This is a much awaited feature for me and I understand this might still be incompletely implemented at this point.
Are getters and setters the only way to construct objects? Or am I doing something wrong? I get no compile errors.
new_TestType throws
SIGSEGV: Illegal storage access. (Attempt to read from nil?)
at runtime from Python.
The text was updated successfully, but these errors were encountered: