References didn't exist in the language when this
was created.
Cogwheel - Matthew Orlando
2010-07-01 22:36:30
References didn't exist in the language when this
was created.
From Bjarne Stroustrup's "The Design and Evolution of C++", Addison-Wesley, 1994, pp 39-40:
Sometimes, people ask why
this
is a pointer rather than a reference and why it is calledthis
rather thanself
. Whenthis
was introduced into C with Classes, the language didn't have references, and C++ borrows its terminology from Simula rather than Smalltalk.