In Function() you can declare variables local. But when it comes to a Method() inside a Define Class(), there doesn't seem to be a provision for transient local variables scoped to within the method.
Does that mean that any variables declared within a Method() are persistent and visible outside the class?
Can't you use the Local() function inside a method?
No, I meant use Local() inside the method.
I think that you answered your own question: use getter and setter methods to manage access and control of instance or class properties.
I'm getting closer to understanding this, but can you help me with couple more things?
(1) Class variable vs. instance variable: does JSL have this distinction, and if so, how do I make a variable one or the other?
(2) Private vs. public instance variables: does JSL have this distinction, and if so, how do I make a variable private?
Regarding #2, I certainly can implement Get/Set on variables, but I can't figure out how to prevent accessing the variable directly.
It may be that the JSL class model doesn't have these distinctions, which is fine, but I'm just trying to get this clear in my mind.
I admit that I responded before without looking at JSL Classes again. I have not studied or used them since they were first introduced. I apologize for any confusion.
As the documentation states, there are not private members, methods, or functions. I do not find any way to declare private properties.
No, JMP does not provide separate class and instance variables.
There are no labels assigned to this post.