Can I get an object\'s name in run time (like getting an object\'s type via RTTI)? I want the object to be able to print its name.
If you mean the name of the variable, I don't think this is possible. Maybe if you compile with the GNU Debugger option on ... but even in that way I don't think the language have constructs to do that.