번역
왜냐하면 reference가 추가되기 전에 C++에 도입되었기 때문입니다. 그리고, smalltalk의 self 대신 Simula의 사용법을 따르기 위해 this를 선택했습니다. 3
원문
Why is "this" not a reference?
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".
'번역 > Bjarne Stroustrup's C++ Style and Technique FAQ' 카테고리의 다른 글
How do i define an in class constant? (0) | 2018.08.12 |
---|---|
Why is the size of an empty class not zero? (0) | 2018.05.10 |
How are C++ objects laid out in memory? (0) | 2018.05.09 |
How do I convert an integer to a string? (0) | 2018.05.09 |
How do I read a string from input? (0) | 2018.03.14 |
댓글