Problems when translating class
streetartist opened this issue · 1 comments
streetartist commented
When transferring a class, the operation of generating a class instance is treated as a calling function, and a type check should be added to avoid this problem
You can't tell whether it's a class by the capitalized initials
a = aclass()
Translated into
a = aclass();
almarklein commented
In PScript, if you have a function call where the function name starts with a capital, it is assumed to be a class instantiation. See https://pscript.readthedocs.io/en/latest/intro.html#caveats