-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 2011-12-11 21:22, Ivica Ico Bukvic wrote:
I stand corrected. So, the next question is, is it considered "good coding practice" to explicitly call destructors, or is this one of those quod libet kinds of things?
"explicitely calling destructors" is a bit vague in this context. you question should rather be termed: "is it considered 'good practice' to explicitely call destructors on exit".
anyhow, i believe "good practice" depends on a number of factors; so you cannot simply say that using CamelCase is good practice whereas using hungarian notation is bad practice.
personally, i prefer if the program does call dtors on exit, since there are a number of ressources that cannot be automatically freed by the operating system due to their very nature. if your Pd-patch controls the facilities in your flat, you might want it to shut off the light if the patch is powered down in order to save energy. the operating system most likely will not send the appropriate commands to your arduino....
fgmasdr IOhannes