Skip to content
Tcl Source Code History Of Ticket 218127
Login

History Of Ticket 218127

Artifacts Associated With Ticket 218127

  1. Ticket change [83d54d713f] (rid 117442) by nobody on 2000-10-26 00:53:27:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      OriginalBugID: 1986 RFE
      Version: 8.0.5
      SubmitDate: '1999-05-04'
      LastModified: '2000-01-12'
      Severity: LOW
      Status: Closed
      Submitter: pat
      ChangedBy: hobbs
      OS: All
      OSVersion: NA
      Machine: NA
      FixedDate: '2000-10-25'
      FixedInVersion: NA
      ClosedDate: '2000-01-12'
      
      
      Name:  Alexandre FERRIEUX
      
      DesiredBehavior:
          Idea: interpreting whitespace in a proc name as a subcommand override.
          
          Example:
          
          # Today we handle subcommands this way:
          proc a {sub args} {
          switch -- $sub {
           b {...}
           c {...}
           default {error "a: Unknown subcommand '$sub'"}
          }
          }
          
          # With 'space commands' we'd do instead:
          proc a {sub args} {error "a: Unknown subcommand '$sub'"}
          proc "a b" args {...}
          proc "a c" args {...}
          
          Detailed mechanism: when evaluating a command line "a b c d e", Tcl
          would first look for a proc named "a b c d e", then "a b c d", ..., then
          "a". Notice that this can be made fairly efficient, by using the base
          proc as an anchor (basename) where we'd store a linked list of special
          cases, ordered by decreasing length; e.g. if "a b c" and "a b c d e" are
          overridden, the structure linked with procedure "a" would contain the
          list {{4 "b c d e"} {2 "b c"}}. The comparisons with the actual
          parameter list could be done on strings, or lists, or hash values.
          Notice that for the 99% of procs with no subcommand override, this list
          would be empty, hence no performance drag.
          
          Benefit: this solves the major/minor way in a way that's very natural in
          Tcl.
          
      
      
      While the concept of major/minor is important, this is an incompatible,
      and somewhat odd was of achieving such behavior.  We'd rather explore
      more natural command extension possibilities. 
      -- 01/12/2000 hobbs
      
    4. foundin initialized to: "final: 8.0.5"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "nobody"
    9. subsystem initialized to: "81. Bundled Packages"
    10. title initialized to: "'space commands' to solve major/minor"
    11. type initialized to: "RFE"
  2. Ticket change [8291cbf80a] (rid 117259) by welch on 2000-10-26 08:15:55:

    1. closedate changed to: "2000-10-26T01:15:55"
    2. closer changed to: "welch"
    3. priority changed to: "2"
    4. resolution changed to: "Fixed"
    5. status changed to: "Closed"
  3. Ticket change [4000995f70] (rid 121555) by dgp on 2001-04-05 07:17:53:

    1. foundin changed to: "None"
    2. status changed to: "Open"
    3. subsystem changed to: "None"
  4. Ticket change [54c7c7617b] (rid 94008) by dgp on 2001-04-05 07:18:50:

    1. closedate changed to: "2001-04-05T00:18:50"
    2. closer changed to: "dgp"
    3. status changed to: "Closed"
    4. subsystem changed to: "45. Parsing and Eval"