Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 86939861b77072908a5f878eed25c7295df7f3f5
Ticket: 2974744fffffffffffffffffffffffffffffffff
share exception codes (ObjType?)
User & Date: nijtmans on 2010-03-31 13:46:40
Changes

  1. icomment:
    Thinking more about it: I agree with Donal,
    and I recommend to keep it as is. Because:
    - Tcl currently mainly accepts abbreviations in two cases:
          - option arguments starting with "-"
          - commands and ensemble subcommand,
            when in interactive mode
    - If it was intended that try accepts abbeviations, there
      should have been a test case for it.
    - Abbeviations only cause trouble when new return values
      are added: a new "error2" code whould start breaking
      Schelte Bron's code as well.
    - TIP #329 mentiones:
    The on handler allows exact matching against the exceptional return code (the integer value that would be returned by catch). The code may be given as an integer or one of the magic keywords ok (0), error (1), return (2), break (3), continue (4).
      it doesn't mention the possibility of abbreviations.
    - Error codes are short, so I don't see much added
      value in allowing abbreviations.
    
    Things to do:
    - have a look at the current try documentation.
    - add test case for [try], showing that use of
      abbreviations result in an error.
    
    
  2. login: "nijtmans"
  3. mimetype: "text/plain"
  4. username: "nijtmans"