Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: f160d73a20ef19473cad6b52191e844f986c7f0815bf8fda861a6e7644f35814
Ticket: 775ee885603d3d09b5984b1579630e9786f78928
upvar (used with wrong level) causes a segfault
User & Date: jan.nijtmans on 2019-09-07 16:25:08
Changes

  1. closedate changed to: "2458734.18412477"
  2. closer changed to: "jan.nijtmans"
  3. icomment:
    I'm thinking: Can't we think of a better error-message than:
        bad level "1"
    ???
    
    I agree that "bad level xyz" is confusing, but 'bad level "1"' is just as confusing because the command causing this error-message doesn't contain "1" anywhere.
    
    > I'm done here.
    > You (=TCT) can decide about what would be correct here.
    
    Looks like you're not done yet ;-)   Although this ticket is fixed now (the segfault is gone, thanks!), there still is room for better error-messages. I don't think changing the error-messages is against TIP #515: This TIP only changes the interpretation on what syntax is valid and what not, changing the error-message in case of invalid syntax is always a good thing to consider. As long as the only thing changing is the error-message, that can be discussed here without a TIP
    
  4. login: "jan.nijtmans"
  5. mimetype: "text/plain"