[SOLVED] Arduino language

OldSteve:
Disclaimer: I'm not in any way saying that dynamic memory allocation in embedded microcontrollers is a good thing, this is just an example. Easier than writing a 'class' example. :slight_smile:
Definitely not. As we've all stated, it's C++, not C.

I didn't see as many examples like this. Most examples just use the Arduino language reference things. You just wrote that dynamic memory allocation isn't good in embedded microcontrollers. What about classes and objects generally?

I am now confused regarding why / to what extent, then, Arduino (patois + culture + habits and what is encouraged) is different from C++. Why not use C++ concepts such as classes extensively? There is little overhead, it's more about how you think about things.