SPECTACULAR wrote:
Hi all.
I have a question here.. what kind of scoping does C++ use?
and what kind does Smalltalk use?
I know smalltalk is a little bit old .. but any help would be
appreciated.
I have no clue as to what smalltalk does, I don't even know if smalltalk
uses the word "scope" in the same meaning as C++.
C++ always has static scoping. Scoping refers to the context of the
variable naming. It only has meaning at compile time.
C++ does have dynamic typing (or binding) at certain times. What
differs C++ from many other (more pure) Object Oriented languages
is that C++ inherently is STATIC typed/bound. You have to specifically
turn it on by declaring virtual functions.