Tcl Source Code

View Ticket
Login
Ticket UUID: 1219112
Title: Incomplete [catch] compilation
Type: Bug Created on: 2005-06-12 11:12:19
Submitter: dkf Assigned to: dkf
Subsystem: 47. Bytecode Compiler Severity:
Priority: 6 Last modified: 2005-06-21 17:02:11
Status: Closed Closed by: dkf
Resolution: Fixed Closed on: 2005-06-21 10:02:11
Version: obsolete: 8.5a4
Description:
The catch form:
  catch {some script} msg opts
is not bytecode compiled. (The [catch] compiler has not
yet been updated in the light of 8.5 changes.)

Needs an extra opcode, perhaps called
INST_PUSH_RETURN_OPTIONS (modelled after
INST_PUSH_RESULT and INST_PUSH_RETURN_CODE)
User Comments:
dgp added on 2005-06-14 02:46:10:
Logged In: YES 
user_id=80530


hmmm... I'd quibble this is a
feature request rather than a bug,
but yes, worth a look.

dkf added on 2005-06-21 04:29:24:
Logged In: YES 
user_id=79902

Fixed (or at least enough to be the scope of a future bug
report if it doesn't work)

dkf added on 2005-06-21 17:02:11:
Logged In: YES 
user_id=79902

Confirmed that it is doing what I want (issuing the new
opcode and executing it) with low-level tracing.