Re:Never trust a programmer who says he knows C++
by pmjordan on Tuesday March 30, 2010 @10:11AM
(#1229162)
The problem with that (in C++) would be that
This wouldn't be true and cause all sorts of trouble (arrays, etc.) if a had no pointer to a vtable, but *p did. Moreover, you can take the address of a stack/member object, so how would you distinguish the two types? You'd literally need to modify the type system, and that would cause trouble with templates, etc.
[ Parent
| on HN ]
Re:Never trust a programmer who says he knows C++
by stcredzero on Wednesday March 31, 2010 @07:08AM
(#1231431)
I'm not thinking of this in C++ or Smalltalk. I'm thinking of a feature in another language.