Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2024-08-06
11:09 • Ticket [47d03d8ff8] When the superclass is deleted, all objects that inherits th... artifact: 41c6e8fb52 user: dkf
08:42 • Closed ticket [47d03d8ff8]. artifact: 4812a43738 user: dkf
2016-06-22
15:01 • Pending ticket [47d03d8ff8]. artifact: 6645d0f626 user: dkf
2016-06-20
22:00 • Ticket [47d03d8ff8]: 3 changes artifact: 2bfc527625 user: dgp
2016-04-07
16:31 • New ticket [47d03d8ff8]. artifact: d48a10b92b user: anonymous

When the superclass is deleted, all objects that inherits that class are deleted

Closed / Wont Fix47d03d8ff8d34155e5b60ce1f29ebc2dd30e9a5fCreated 11 years agoUpdated 2 years ago
Descriptionplain2016-04-07 16:31:23
I think that this should be documented. When the superclass is deleted, all objects that inherits that class are also deleted.

In the next example, the second call "objB method1" produces an error.
--------------------------------------------------

oo::class create A

oo::class create B {	
	superclass A
	method method1 {} {
		puts "this is method1"	
	}
}

B create objB

objB method1

proc A {} {}

objB method1
dgp Ticket [47d03d8ff8]: 3 changes [History diff]2016-06-20 22:00:13
dkfhtml2016-06-22 15:01:22

It is documented. Do you have any suggestions for what it ought to be instead or where else the fact should be mentioned?

dkf Closed ticket [47d03d8ff8]. [History diff]2024-08-06 08:42:26
dkfmarkdown2024-08-06 11:09:42

Note that this way of doing things is By Design. Definitely won't "fix"!

Log in (anonymous is fine) to add a comment.