Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2011-09-11
01:08 • Closed ticket [3400658fff]: OO forwarding - cosmetic defect on 'incorrect ar... artifact: ebabf6a04c user: dkf
2011-08-30
21:21 • Ticket [3400658fff]: 4 changes artifact: 16c11de242 user: dkf
17:50 • Ticket [3400658fff]: 4 changes artifact: fb920602ec user: rsooltan
17:50 • Add attachment oo_forward_cosmetic.tcl to ticket [3400658fffffffff|3400... artifact: 3ce18608c6 user: rsooltan
10:50 • New ticket [3400658fff] OO forwarding - cosmetic defect on 'incorrect args&#... artifact: 93b202e504 user: rsooltan

OO forwarding - cosmetic defect on 'incorrect args'

Closed / Fixed3400658fffffffffffffffffffffffffffffffffCreated 15 years agoUpdated 15 years ago
Descriptionplain2011-08-30 10:50:35
When the incorrect number of args are passed to a forwarded method where the command is a method of the same class, the usual 'incorrect number of args' is displayed but the first argument apears truncated in the response, possibly due to the use of 'my' and how this is handled by TCL core since this is what is indicated in 'tclOOInt.h' with regard to fwd'd methods. Whilst not impacting it may affect usability/debugging where one wishes to write extensions in TclOO for community release.
rsooltanplain2011-08-30 17:50:37
File Added - 422353: oo_forward_cosmetic.tcl
dkfplain2011-08-30 21:21:17
Hmm, maybe I'm not initializing the error message rewriting quite correctly.
dkfplain2011-09-11 01:08:51
allow_comments - 1

Yep, was an off-by-one error in some (rather complex) argument rewriting code. All fixed now, both in 8.6 and the package-for-8.5.
Log in (anonymous is fine) to add a comment.

Attachments: