|
2008-10-23
| ||
| 21:21 | • Closed ticket [2189526fff]: Constructor chaining and empty body plus 3 other... artifact: 887683a668 user: kennykb | |
| 14:15 | • New ticket [2189526fff]. artifact: 9c993858da user: kennykb | |
Constructor chaining and empty body
Closed / Invalid2189526fffffffffffffffffffffffffffffffffCreated 18 years agoUpdated 18 years ago
Descriptionplain2008-10-23 14:15:03
If the body of a base class constructor is empty,
constructor chaining with [next] fails.
Example:
----
oo::class create a {
constructor {} {}
}
oo::class create b {
superclass a
constructor {} {next}
}
b create c
----
no next constructor implementation
while executing
"next"
(class "::b" constructor line 1)
invoked from within
"b create c"
(file "/home/kennykb/tmp/oops" line 9)
----
kennykb Closed ticket [2189526fff].
[History diff]2008-10-23 21:21:37
Log in (anonymous is fine) to add a comment.