Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 6197c09485f75f649797cf6df17e4ca437f833bb
Ticket: 536838ffffffffffffffffffffffffffffffffff
[subst] doc clarification
User & Date: dgp on 2002-03-30 01:57:46
Changes

  1. icomment:
    Logged In: YES 
    user_id=80530
    
    
    It should also be noted that [subst] can only have a
    return code of TCL_OK or TCL_ERROR.  If a substitution
    yields some other return code, notably TCL_RETURN, but
    other extended return codes as well, they are effectively
    converted to TCL_OK.
    
    I seem to recall Brent Welch wishing for a means to
    return extended return codes from [subst] for use in
    web page template processing so that something like
    
    subst {
    # lots of template stuff with a
    return -code 404 "Page not found"
    # blah
    }
    
    could be used.
    
    
  2. login: "dgp"
  3. mimetype: "text/plain"
  4. username: "dgp"