develooper Front page | perl.perl5.porters | Postings from July 2003

Bug #6278: Explict call to DESTROY considered harmful

Tony Bowden
July 18, 2003 11:15
Bug #6278: Explict call to DESTROY considered harmful
Message ID:

MJD considered changing perltoot to turn "Explicitly calling DESTROY is
also possible, but is usually never needed." into something more strongly
warning against ever doing it.

His original report never made it to p5p, but Damian's response did,
thus triggering a longish thread on what was wrong with perlbug.

However this left the bug report itself hanging.

As Damian pointed out, you may need to call DESTROY directly when

This leaves 2 main options:

1) Leave everything as is, and close the bug.

2) Add something to the docs that changes the above line into something
akin to:

Explicitly calling DESTROY should be avoided, other than when calling


Tony Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About