Artifacts Associated With Ticket 1577492fffffffff
Ticket change [df13bb63ef] (rid 114959) by msofer on 2006-10-15 03:02:05:
- assignee initialized to: "dkf"
- cmimetype initialized to: "text/plain"
- comment initialized to:
Attached a patch that, while not touching [info level] itself, makes it aware of rewrites: the (objc,objv) fields in each CallFrame are not rewritten during ensemble calls. If the patch in [Bug 1574835] is accepted, it should be modified accordingly so that [interp alias] benefits from this too.
- foundin initialized to: "None"
- is_private initialized to: "0"
- priority initialized to: "8"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "msofer"
- subsystem initialized to: "17. Commands I-L"
- title initialized to: "let [info level] know ensemble rewrites"
- type initialized to: "RFE"
Add attachment "infolevel.patch" [7f6fa2e75a] (rid 97560) by msofer on 2006-10-15 10:02:05.
Ticket change [51f56df94d] (rid 126223) by msofer on 2006-10-15 10:02:05:
- icomment:
File Added - 198222: infolevel.patch
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment:
Ticket change [bebb46b77a] (rid 102127) by dgp on 2006-10-15 10:24:31:
- icomment:
Logged In: YES user_id=80530 Be careful here. As the attempt to fix 1400572 demonstrated, Itcl is sensitive in mysterious ways to what gets stored in those objc, objv fields. May even be storing things there itself?
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [5f40350b9c] (rid 115779) by msofer on 2006-10-15 19:26:41:
- icomment:
Logged In: YES user_id=148712 Remark that this patch does not really touch (objc, objv) any more than HEAD. Quite the contrary: it avoids touching it for ensemble calls. The fix for itcl or any other weirdo wanting to store things in there itself is to store them *after* pushing the stack frame. Note also: as the core uses TclPushStackFrame and itcl Tcl_PushCallFrame on frames it allocates itself (bwerk!), it is easy to make this patch only touch (objc, objv) on frames pushed on the stack: itcl should never see it. I think ... except if itcl wants to determine what non-itcl call frames do too?
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment:
Ticket change [f52a77a9f9] (rid 130060) by msofer on 2006-10-15 21:21:21:
- icomment:
Logged In: YES user_id=148712 Just checked: this patch has no effect on the itcl testsuite. It causes the same 4 testsuite errors and a seggie as HEAD.
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment:
Ticket change [f0d98658fa] (rid 109265) by dgp on 2006-10-16 01:23:01:
- icomment:
Logged In: YES user_id=80530 I'm pretty sure the 1400572 fix caused no Itcl test suite failures either. Still caused enough trouble with existing Itcl code that it had to go.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [6abfc35f8a] (rid 128206) by msofer on 2006-10-16 01:54:23:
- icomment:
Logged In: YES user_id=148712 This has essentially the same behaviour as 1400572, which is already in HEAD. If we choose to go back to 8.4 behaviour, with [namespace inscope] having an empty [info level], that can be done easily here too: the caller of Tcl_PushCallFrame can rewrite those fields afterwards anyway - they are just being initialised differently than they were before. IOW, 1400572 breakage would be fixed in this patch by just adding 'iPtr->objc=0;' in [namespace inscope]'s code, should we choose to allow it to have an empty [info level].
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment:
Ticket change [f1fd1a4c71] (rid 109450) by msofer on 2006-10-17 08:08:50:
- icomment:
Logged In: YES user_id=148712 Interesting side effect of this on toy oo systems based on ensembles (neo, eos): there is now no need to rewrite/reorder the cmd line. The name of the "object" (the calling ensemble) can be retrieved with set self [lindex [info level 0] 0]
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment:
Ticket change [074fd83d13] (rid 89375) by msofer on 2006-10-24 05:50:43:
- assignee changed to: "msofer"
- closedate changed to: "2006-10-23T22:50:43"
- closer changed to: "msofer"
- icomment:
Logged In: YES user_id=148712 The commit also fixed clock::format and clock::scan wrong # args messages, and their tests.
- login: "msofer"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "msofer"
Ticket change [0b8244cc6a] (rid 113998) by msofer on 2006-10-24 07:36:40:
- icomment:
Logged In: YES user_id=148712 Add tests! Also specific for ensembles and aliases.
- login: "msofer"
- mimetype: "text/plain"
- status changed to: "Open"
- username: "msofer"
- icomment:
Ticket change [fa6ec6cba2] (rid 91877) by msofer on 2006-10-25 06:13:14:
- closedate changed to: "2006-10-24T23:13:14"
- closer changed to: "msofer"
- icomment:
Logged In: YES user_id=148712 Added info-9.11-12
- login: "msofer"
- mimetype: "text/plain"
- status changed to: "Closed"
- username: "msofer"
Ticket change [0fad3fa25b] (rid 94831) by msofer on 2006-10-31 17:29:20:
- icomment:
Logged In: YES user_id=148712 This has led to breaking a relatively common idiom, used a lot in tcclib's struct an in Tkcon ([Bug 1587618 ] "important use of [info level 0] broken"). ISTM that breaking a common idiom that has no simple workaround is a relatively severe bug, and nicer error messages more like a WIBNI. Reverting the commit and reopening this FR with a new title.
- login: "msofer"
- mimetype: "text/plain"
- resolution changed to: "None"
- status changed to: "Open"
- title changed to: "reflect ensemble rewrites on error messages"
- username: "msofer"
- icomment:
Ticket change [e55bc7a3db] (rid 88116) by msofer on 2007-09-09 06:08:40:
- icomment:
data_type - 360894
- login: "msofer"
- mimetype: "text/plain"
- subsystem changed to: "17. Commands I-L"
- username: "msofer"
- icomment:
Ticket change [266e3fedb5] (rid 261513) by serhiy.storchaka on 2026-11-13 11:18:43:
- closedate changed to: "2461357.9713335303"
- closer changed to: "serhiy.storchaka"
- icomment:
Since Tcl 8.5.0 the wrong # args message of a procedure called through an ensemble or an alias shows the command as it was called (should be "e sub a"), while info level 0 still gives the rewritten command as restored for [1587618].
- login: "serhiy.storchaka"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Fixed"
- status changed to: "Closed"