| We have been from about your 2nd comment on. Nope, if you think forming beliefs from youtubers is so negative, don't do it. It's one of the topics, one of the manifestations of the systemic issues I was talking about, if you had paid any sort of attention. Nope, destructors have nothing to do with this and this was never something you mentioned before. If it was you could show it with godbolt. You are still not understanding? I gathered you seem to be a game developer of some sorts but you don't understand the simplest basic facts about C++? Show me. They are just functions, usually one or two lines. Please show me how you can call a destructor in C++ without seeing the declaration of the destructor. You have declarations of functions the same as in C, did you try this? JUST DO IT. SHOW THE EVIDENCE. DONT TALK. Show me what you're talking about in godbolt. |
How about you simply Ctrl+F for "build time" or "compile time" and admit you have been lying, have been extremely adversarial, and have been incredibly lazy?
> Show me. They are just functions, usually one or two lines.
Isn't it strange that I'm now creating a godbolt containing absolute C++ basics as a youtuber personality fangirl, since apparently I'm only repeating stuff I don't understand, which has to be why I can't express myself and provide evidence?
It is beyond me how you don't seem to know what I'm talking about, but here you go... This should provide reasonable evidence of the lack of ergonomics when using C++, and how problematic this class stuff is from various technical standpoints.
As you mentioned, in C style programming, we could instead simply forward declare a struct, than forward declare some functions. One line for each. Good header hygiene. Clean. Done. But noo, this is C++ and we can't have straightforward code and low coupling.
Full link: https://godbolt.org/#z:OYLghAFBqd5QCxAYwPYBMCmBRdBLAF1QCcAaP...