Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: f6392eb9a118c20426697f386b793481d95aeafb
Ticket: 219191ffffffffffffffffffffffffffffffffff
return in after script causes bogus bgerror
User & Date: dgp on 2000-11-14 04:53:50
Changes

  1. icomment:
    I disagree that [return] should throw an error at
    level #0.  That's not what the docs say.  From return(n):
    ...
    DESCRIPTION
         Return immediately from the current procedure (or  top-level
         command or source command), with string as the return value.
    ...
    
    [return] has behaved this way at least as long as I've
    used Tcl (since Tcl 7.4), and I've seen plenty of code
    that depends on this behavior.  Notably the use of
    [return] to exit a pkgIndex.tcl file before the end
    of file is quite useful.
    
    
    
  2. login: "dgp"
  3. mimetype: "text/plain"
  4. username: "dgp"