Instance Environment

From STX Wiki
Jump to navigation Jump to search

Instance variables are preceded by the ampersand character &.

No special variables are defined for the instance environment.

You can retrieve the value of an instance variable using the syntax:


For example:


Will return the value of the &xmin variable in the $#obj instance.

A programmer should take care about variables used in base classes and about the fact that instance variables can also be accessed and changed from outside the class/instance e.g. by using instancename.variablename in a READ command or an assignment statement.