Artifacts Associated With Ticket 1665441
Ticket change [52176a7bab] (rid 126251) by gwlester on 2007-02-21 17:25:36:
- assignee initialized to: "dkf"
- cmimetype initialized to: "text/plain"
- comment initialized to:
The proc command should raise an error if a non-default argument follows a defaulted argument.
- foundin initialized to: "obsolete: 8.4.14"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "gwlester"
- subsystem initialized to: "18. Commands M-Z"
- title initialized to:
Generate an error on default arg followed by non-default arg
- type initialized to: "Bug"
Add attachment "tclProc.c" [96e7045c28] (rid 106411) by gwlester on 2007-02-22 00:25:37.
Ticket change [52d9345063] (rid 126391) by gwlester on 2007-02-22 00:25:37:
- icomment:
File Added - 217069: tclProc.c
- login: "gwlester"
- mimetype: "text/plain"
- username: "gwlester"
- icomment:
Ticket change [ca4c7f3af5] (rid 122444) by msofer on 2007-02-22 00:30:13:
- 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 ...
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment:
Ticket change [0ff6c76582] (rid 94885) by msofer on 2007-02-22 00:30:53:
- assignee changed to: "msofer"
- subsystem changed to: "22. [proc] and [uplevel]"
Ticket change [7693bbf3cb] (rid 105613) by pspjuth on 2007-02-22 14:35:42:
- 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. - login: "pspjuth"
- mimetype: "text/plain"
- username: "pspjuth"
- icomment:
Ticket change [09458f1c81] (rid 89694) by msofer on 2007-02-23 02:52:39:
- 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?
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment:
Ticket change [11fb1c769f] (rid 95239) by pspjuth on 2007-02-23 19:09:30:
- 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. - login: "pspjuth"
- mimetype: "text/plain"
- username: "pspjuth"
- icomment:
Ticket change [2ca2651010] (rid 118937) by lars_h on 2007-02-27 19:33:40:
- 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 - login: "lars_h"
- mimetype: "text/plain"
- username: "lars_h"
- icomment:
Ticket change [5ecd1651e6] (rid 115691) by msofer on 2009-05-01 08:30:08:
- priority changed to: "6"