3 ms·
It is hard to find anyplace where you may have C but not C++. Do people still use PICs? I think 32-bit ARM chips may be had for 3 cents nowadays. For a really m
by ncmncm 5y ago
It is hard to find anyplace where you may have C but not C++. Do people still use PICs? I think 32-bit ARM chips may be had for 3 cents nowadays. For a really memory-constrained target, you might choose to turn off exception support.
- pjmlp 5y agoThey do, but personally I would be pushing for Pascal in such cases. https://www.mikroe.com/mikropascal https://www.mikroe.com/mikropascal
- ncmncm 5y agoPascal lacks destructors and templates. No dice.
- pjmlp 5y agoTrue, although in the context of PIC programming hardly matters. For me no dice is being unsafe by default. Thankfully in the context of C++ I could always fix, what from my point of view, are bad defaults regarding bounds checking.
- ncmncm 5y agoPascal is unsafe by default: it allows null pointers, and stale pointers.
- pjmlp 5y agoTrue, but it has a much safer story than C in everything else. C++ was attractive to me in 1993, because it offered me the safety, and modern language features I was used from Turbo Pascal and then some.