At the beginning of the Objects, Modules, and Memory page in the Monkey C documentation it says:
Within a method implementation you can refer to your current instance using either the self
or me
keywords.
For example,
class A
{
public var x;
public var y;
public function initialize() {
me.x = "Hello"; // Set current instance x variable
self.y = "Hello"; // Set current instance y variable
}
}
However, doing so causes the Type Checking feature of the compiler to issue warnings, such as
Cannot find symbol ':y' on type 'self'
It seems that the type checker is incompatible with this feature of Monkey C. Can the type checker be fixed to work with me
or self
?