Re:Why threads vs events is a nonsensical question.
by nknight on Saturday August 20, 2011 @08:48PM
(#2908184)
Why would it look quite weird, and why would anyone think you were crazy? It's standard practice and quite easy in C++. Smart pointers and RAII are your friends.
[ Parent
| on HN ]
Re:Why threads vs events is a nonsensical question.
by marshray on Saturday August 20, 2011 @09:45PM
(#2908275)
I agree with you. That's how I code and I don't have any problem with such leaks. But the usual response by people who don't believe that is "well the language doesn't force you to use them".
I was thinking of the weird tricks that would have to be in place to plausibly prove that there was no unmanaged dynamic allocation going on.