4 ms·
I wouldn't say Symbian was C++ - I remember it being a sort of intermediate step between C and C++. There were no exceptions, no STL, and many other weird quirk
by namdnay 5y ago
I wouldn't say Symbian was C++ - I remember it being a sort of intermediate step between C and C++. There were no exceptions, no STL, and many other weird quirks
- t43562 5y agoC is still C without libc and python is still python even if you can't "import os, sys" so why does lack of the STL matter to C++ ? Symbian used a standard C++ compiler and mandated a certain style of programming because C++ with STL and exceptions wasn't actually safe on small machines with limited memory. No exceptions were allowed in the kernel IIRC and new had to return an error code rather than throw an exception because handling an out of memory exception required....spare memory.
- pjmlp 5y agoThis is a common argument of the anti-C++ crowd when defending C, it is either 100% of all C++ features or it doesn't count. Yet, the fact that most kernels cannot do ISO C gets cleverly forgotten.
- namdnay 5y agoI agree that the STL isn’t a core part of C++, but exceptions clearly are - can you call it C++ if you can’t use all the features of C++ ?
- t43562 5y agoYou can use them for sure - the compiler still supports them - but nasty stuff will happen if you do it in the Symbian kernel. Presumably there are things you don't want to do in C in the kernel - like using heap memory allocation in certain situations or calling printf() or something like that.