Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: b6a1b257de35f23a7367a5a255470f08cb33b587f7b14c99772673988000b878
Ticket: 9889f96f4da77e3b80dfa7ec6aa99b65c17974d1
Regression when mixing eval + clock + error within condition block
User & Date: sebres on 2024-05-13 09:56:48
Changes

  1. foundin changed to: "8.7+"
  2. icomment:
    This looks like something related to lazy-creation of clock-ensemble, because repeating the same code (where clock is already created and initialized), it generates correct line:
    ```
    % set c "clock seconds;\n\nif 1 {\nputs \[info frame 0\]\n}"; eval $c
    type eval line 2 cmd {info frame 0} level 0
    % set c "clock seconds;\n\nif 1 {\nputs \[info frame 0\]\n}"; eval $c
    type eval line 4 cmd {info frame 0} level 0
    ```
    
    Looks like such ensemble creation inside of compiled command may reset evaluation line of TEBC (code recompilation? epoch switch? NRE?).
    If init.tcl doesn't have lazy creation of clock-ensemble, it works as expected.
    
    Thus it is not related to new clock-engine at all and the issue belongs to TEBC or proc compilation.
    
  3. login: "sebres"
  4. mimetype: "text/x-markdown"
  5. subsystem changed to: "47. Bytecode Compiler"