Tcl Source Code

View Ticket
Login
Ticket UUID: 7d52e1101b43089746af9a94aa1c5b5b249b3d45
Title: info class subclasses ::oo::object does not include ::oo::class
Type: Bug Version: 8.6
Submitter: apnadkarni Created on: 2014-07-22 09:58:00
Subsystem: 35. TclOO Package Assigned To: dkf
Priority: 7 High Severity: Minor
Status: Closed Last Modified: 2014-08-17 15:25:38
Resolution: Fixed Closed By: dkf
    Closed on: 2014-08-17 15:25:38
Description:
(tcl) 49 % info class superclasses ::oo::class
::oo::object
(tcl) 50 % info class subclasses ::oo::object
::oo::Slot

I would have expected ::oo::class also to be included since its superclass is shown as ::oo::object.

Probably of no consequence as I only ran into it while trying to deepen my tcloo understanding. Nevertheless, logging as a bug in case it does matter in cases I have not thought of.
User Comments: dkf added on 2014-08-17 15:25:38:

OK, that should be sorted (it was a one-line fix, plus test). Sorry it took so long; had to confirm that adding the extra link did not cause memory cleanup problems.


dkf added on 2014-08-14 07:02:10:

Hmm, that definitely looks like a bug in the configuration of the oo::object subclass collection. (I worry about what fixing it will do to the cleanup code — things are a bit interlinked — but it definitely should be fixed.)