Respond to an unknown method call: Difference between revisions
Content added Content deleted
Line 772: | Line 772: | ||
} |
} |
||
Obj=Alfa() |
Obj=Alfa() |
||
\\ normal |
\\ normal invoke, interpreter not know that this is an object method |
||
\\ this method has a weak |
\\ this method has a weak reference to obj, so anytime we use This. or just dot, this weak reference make the real name to execute |
||
Obj.a 10,20 |
Obj.a 10,20 |
||
\\ call the fake method (can't access object methods an properties), has empty weak reference to object |
\\ call the fake method (can't access object methods an properties), has empty weak reference to object |