Skip to content
Tcl Source Code History Of Ticket 1665441
Login

History Of Ticket 1665441

Artifacts Associated With Ticket 1665441

  1. Ticket change [52176a7bab] (rid 126251) by gwlester on 2007-02-21 17:25:36:

    1. assignee initialized to: "dkf"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      The proc command should raise an error if a non-default argument follows a defaulted argument.
      
    4. foundin initialized to: "obsolete: 8.4.14"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "gwlester"
    10. subsystem initialized to: "18. Commands M-Z"
    11. title initialized to:
      Generate an error on default arg followed by non-default arg
      
    12. type initialized to: "Bug"
  2. Add attachment "tclProc.c" [96e7045c28] (rid 106411) by gwlester on 2007-02-22 00:25:37.

  3. Ticket change [52d9345063] (rid 126391) by gwlester on 2007-02-22 00:25:37:

    1. icomment:
      
      
      File Added - 217069: tclProc.c
      
      
      
    2. login: "gwlester"
    3. mimetype: "text/plain"
    4. username: "gwlester"
  4. Ticket change [ca4c7f3af5] (rid 122444) by msofer on 2007-02-22 00:30:13:

    1. icomment:
      Logged In: YES 
      user_id=148712
      Originator: NO
      
      Please submit the patch as patch, not the full file! 'diff -u' is what we prefer ...
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  5. Ticket change [0ff6c76582] (rid 94885) by msofer on 2007-02-22 00:30:53:

    1. assignee changed to: "msofer"
    2. subsystem changed to: "22. [proc] and [uplevel]"
  6. Ticket change [7693bbf3cb] (rid 105613) by pspjuth on 2007-02-22 14:35:42:

    1. icomment:
      Logged In: YES 
      user_id=98900
      Originator: NO
      
      While adding such sanity checks, it might be good to check
      for duplicate arguments too.
      proc a {x x} { puts [info locals] }
      is currently allowed but nonsensical.
      
      
      
    2. login: "pspjuth"
    3. mimetype: "text/plain"
    4. username: "pspjuth"
  7. Ticket change [09458f1c81] (rid 89694) by msofer on 2007-02-23 02:52:39:

    1. icomment:
      Logged In: YES 
      user_id=148712
      Originator: NO
      
      Duplicate arguments is not itself an error; there might even be someone out there (mis)using that (mis)feature? 
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  8. Ticket change [11fb1c769f] (rid 95239) by pspjuth on 2007-02-23 19:09:30:

    1. icomment:
      Logged In: YES 
      user_id=98900
      Originator: NO
      
      I think you are right, I can imagine someone using duplicate args for
      dummy args like:
      proc a {x _ _ y} {...}
      so, consider my request withdrawn.
      
      
      
    2. login: "pspjuth"
    3. mimetype: "text/plain"
    4. username: "pspjuth"
  9. Ticket change [2ca2651010] (rid 118937) by lars_h on 2007-02-27 19:33:40:

    1. icomment:
      Logged In: YES 
      user_id=938835
      Originator: NO
      
      Has the issue of how this is documented been considered?
      
      The [proc] manpage (8.5 currently on www.tcl.tk) says:
      Arguments with default values need not be specified in a procedure invocation. However, there must be enough actual arguments for all the formal arguments that don't have defaults, and there must not be any extra actual arguments.
      
      It does /not/ say arguments with defaults may only be given at the end. Even the error messages seem to agree with this, although an error is thrown:
      
      % info patchlevel
      8.5a3
      % proc prov {{opt 23} man} {list $opt $man}
      % prov 1
      wrong # args: should be "prov ?opt? man"
      % prov 1 2
      1 2
      
      
      
    2. login: "lars_h"
    3. mimetype: "text/plain"
    4. username: "lars_h"
  10. Ticket change [5ecd1651e6] (rid 115691) by msofer on 2009-05-01 08:30:08:

    1. priority changed to: "6"