Pharo Smalltalk - How is a variable region achieved in an object?

I am experimenting in Pharo, and I was wondering how the class, the scope of instance variables, is achieved.

Moreover, instance variables can be accessed by all methods of this instance of the class, and instance variables of the class can be accessed by all methods of the class, etc.

Where is the depth of this area in the code determined? Can you see where and how this happens, Smalltalk is fully object oriented?

+4
source share
1 answer

I assume that you are in Pharo> = 4.0, in which case you have the so-called OpalCompiler.

OpalCompiler (. OCAbstractScope ), (. OCASTSemanticAnalyzer).

, refs, ref... .

+2

Source: https://habr.com/ru/post/1606140/


All Articles