Possible Duplicate:
Why 'this' is a pointer and not a reference?
Why is this
a pointer, rather rhan reference? Can it ever be NULL
?
Why is "
this
" not a reference?
See Bjarne's answer here
Because "this" was introduced into C++ (really into C with Classes) before references were added. Also, I chose "
this
" to follow Simula usage, rather than the (later) Smalltalk use of "self".
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With