Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 597d100e1a3253006323f4a3c27d2eeaec0d823999aca555aa441e899f58f1c3
Ticket: b108e00ac8b1b6e449ea7843ea605ed27cc68c7c
Defining const with a different value should raise an error
User & Date: apnadkarni on 2026-06-19 04:57:58
Changes

  1. icomment:
    Further from the chat:
    
    
    DonalFellows (via ischain) 2026-06-18 20:14:51 UTC – 2026-06-18 20:15:43 UTC
    
    The problem is how to handle someone putting [const X [expr {...}] inside a loop.
    
    I'm uncertain which way to go there.
    
    apn (via ijchain) 2026-06-19 04:22:26 UTC – 2026-06-19 04:22:48 UTC
    
    A loop does not introduce a new scope so I would say it should behave like anywhere else - const c $X; const c $Y should raise an error unless $X == $Y
    
    Or to be more precise, $X eq $Y
    
  2. login: "apnadkarni"
  3. mimetype: "text/plain"