3 ms·
Well, constructors are not very different from functions, from the caller point of view. Also, Python is much worse in this: any call can be monkey patched at b
by giomasce 6y ago
Well, constructors are not very different from functions, from the caller point of view. Also, Python is much worse in this: any call can be monkey patched at basically any point during the execution, but people do not (usually) use this as an example of poor language designing. You expect the programmer to use the language features considerately.
BTW, in C++ every call is resolved at compile time, and the compiler could tell you what you are exactly doing at each line, including whether your examples are function calls or casts. If you dump the right table in GCC the information is there, although it's a pity there is no convenient way to access it. Cppexplorer helps a little bit, but I always find it difficult to understand. It's a problem of tooling, though, the language is well defined.
- formerly_proven 6y ago> If you dump the right table in GCC the information is there, although it's a pity there is no convenient way to access it. CLion, ctrl+B.