Y
Hacker News
new
|
ask
|
show
|
jobs
by
spacechild1
886 days ago
How is RAII a problem on embedded platforms? It is basically about scoped cleanup, something you would otherwise have to do manually.
1 comments
actionfromafar
886 days ago
Not sure what waa meant but what comes to mind to me who has dabbled in embedded is that in C it’s painfully clear how long “objects” live and when you tear them down and how. In C++ stuff can easily “happen” at an inopportune moment.
link
mgaunard
886 days ago
Same in C++: happens at the end of the scope. You precisely control where that is.
link