子图 > Developing > Creating > AssemblyScript API
AssemblyScript的常见问题
在子图开发过程中,常常会遇到某些 AssemblyScript 问题。它们在调试难度范围内,但是,意识到它们可能会有所帮助。以下是这些问题的非详尽清单:
Private
class variables are not enforced in AssemblyScript. There is no way to protect class variables from being directly changed from the class object.- Scope is not inherited into closure functions, i.e. variables declared outside of closure functions cannot be used. Explanation in Developer Highlights #3.