adiwan (adiwan)'s status on Friday, 04-Oct-24 21:09:16 UTC

  1. I have programmed quite some C++ back in my days. I got a little bit more into it again and I must say that C++ is, for all intents and purposes, very backwards in their syntax. I don't mind some of its minor quirks. The big stuff that annoy me is the way it demands all the stuff that should be automatic but due to legacy and C-interoperability it's kept that way. I created a base button class and had different subclasses of buttons. I created an array of the base button class and assigned the subclass objects to it. However it didn't work as intended as only the base class was called because the array was of the type "Button" and not "Button*". It had to have the type to Button pointers because otherwise the polymorphism doesn't work. C# has pampered me way too much in that regard. However using C++ templates feels sooo good.

    about 9 months ago from web