Skip to content
Tcl Source Code View Ticket
Login

View Ticket

destroing ::oo::object and ::oo::class cause a fatal error

Closed / Fixed2962664fffffffffffffffffffffffffffffffffCreated 17 years agoUpdated 17 years ago
Descriptionplain2010-03-03 15:11:53
this will cause a fatal error:

::oo::object destroy
::oo::class destroy
->
called Tcl_FindHashEntry on deleted table

I think that ::oo::class destroy will also delete all objects/subclasses, but this table has been already deleted.

(Ok, I know that destroing ::oo::object or ::oo::class is a bad idea, but... I did it :P )
kennykb Ticket [2962664fff]: 1 change [History diff]2010-03-03 22:29:25
dkfplain2010-03-03 23:29:19
Confirmed with HEAD.
Works correctly the other way round (i.e., says that the second thing to be explicitly killed doesn't exist because it has already gone away).
dkfplain2010-03-05 06:55:26
This is an evil bug caused by the way that oo::class and oo::object get all incestuous with each other. Needed a special case to make it all function correctly.

Fixed in HEAD and standalone TclOO package.
dkfplain2010-03-05 06:55:27
allow_comments - 1
Log in (anonymous is fine) to add a comment.