Artifacts Associated With Ticket 9dd1bd7a74bc6e9e
Ticket change [238737f1d7] (rid 141729) by anonymous on 2015-05-12 16:04:44:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
Invoking [self] in the destructor returns an empty string if an error was raised in the constructor, except if [self] had been invoked in the constructor prior to the error. Please, see following recipe to reproduce: ~~~ # TclOO bug. [self] returns no value on the destructor if: # - There is an error while constructing the object. # - [self] is not invoked prior to the error. ::oo::class create noself { constructor {args} { error "Some error in NOSELF constructor."; } destructor { puts "I have no self='[self]'."; } } ::oo::class create yesself { constructor {args} { self; error "Some error in the YESSELF constructor after invoking \[self\]."; } destructor { puts "I do have self='[self]'."; } } catch {noself new}; catch {yesself new}; ~~~ The script outputs the following: ~~~ I have no self=''. I do have self='::oo::Obj24'. ~~~ - foundin initialized to: "1.0.1"
- is_private initialized to: "0"
- login: "anonymous"
- priority initialized to: "5 Medium"
- private_contact initialized to: "3410fe6f8504d01909e548b02e0cec50a5f7fab3"
- resolution initialized to: "None"
- severity initialized to: "Severe"
- status initialized to: "Open"
- submitter initialized to: "anonymous"
- subsystem initialized to: "35. TclOO Package"
- title initialized to:
[self] returns empty string in destructor when constructing fails
- type initialized to: "Bug"
Ticket change [86b3afc962] (rid 141763) by dkf on 2015-05-15 13:26:07:
- assignee changed to: "dkf"
- icomment:
Good catch; it's a race between the construction of the name and the deletion, with some traces in the mix too to make it all complicated.
- login: "dkf"
- mimetype: "text/html"
- priority changed to: "8"
- username: "dkf"
Ticket change [b56f111c0b] (rid 141768) by dkf on 2015-05-15 13:55:10:
- login: "dkf"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
Ticket change [ea9a0c49ed] (rid 141769) by dkf on 2015-05-15 14:02:24:
- closedate changed to: "2457158.08500165"
- closer changed to: "dkf"
- icomment:
Should be fixed in Tcl 8.6 and next release of TclOO package.
- login: "dkf"
- mimetype: "text/plain"
- status changed to: "Closed"
- username: "dkf"