[petsc-dev] Remove calls to XXXReset() in XXXDestroy()
Lisandro Dalcin
dalcinl at gmail.com
Fri May 13 08:25:49 CDT 2011
On 13 May 2011 16:07, Barry Smith <bsmith at mcs.anl.gov> wrote:
>
> I think because I've never done truly serious programming in Python or C++ I haven't developed this total instinctive aversion to calling methods in the destructor.
>
Indeed. After two or three times of having to debug issues related to
that, you learn a lesson :-) ... and Python could be even harder than
C++, because of the GC that can start running at any time.
>
> So, for me, it is a completely reasonable thing to do, while for you it appears as a cardinal sin of terribleness.
>
Well, not so terrible, but better to avoid if reasonably possible.
>Hence our difficulties in communicating, you are shocked that "Barry kills babies for their meat", while Barry doesn't understand why you are so upset that "Barry has an easy source of protein."
>
Other entry for http://twitter.com/#!/shitbsmithsays !!!
--
Lisandro Dalcin
---------------
CIMEC (INTEC/CONICET-UNL)
Predio CONICET-Santa Fe
Colectora RN 168 Km 472, Paraje El Pozo
3000 Santa Fe, Argentina
Tel: +54-342-4511594 (ext 1011)
Tel/Fax: +54-342-4511169
More information about the petsc-dev
mailing list