Order of constructor/destructor invocation

logistix logstx at bellatlantic.net
Tue Mar 5 18:00:03 EST 2002


Yeah, exactly.

h = HTML()

is equivilent to:

HTML* h;
h = new HTML;

and not

HTML h;

In C++ terms, all the variable names are reference counting "smart
pointers", and we know how fun those are to implement. Over and over and
over and over again.





More information about the Python-list mailing list