Overview
| Artifact ID: | 034a12ea4731041ae3d474dca3ad2a04098840a5 |
|---|---|
| Ticket: | 3045010fffffffffffffffffffffffffffffffff
[apply]: overlong "wrong # args" error |
| User & Date: | andygoth on 2010-08-14 18:36:49 |
Changes
- assignee changed to: "dkf"
- cmimetype changed to: "text/plain"
- comment changed to:
[apply]'s "wrong # args" error message is impractically long, because it contains the full lambda. I imagine this is a consequence of using Tcl_WrongNumArgs() with objc=2. For example: apply {{msg rep} { for {set i 0} {$i < $rep} {incr i} { puts $msg } }} gives the error: wrong # args: should be "apply {{msg rep} { for {set i 0} {$i < $rep} {incr i} { puts $msg } }} msg rep" I suggest omitting the lambda, since the only relevant part (the parameter list) is repeated at the end of the error anyway. In my example, this would be simply: wrong # args: should be "apply lambdaExpr msg rep" - foundin changed to: "None"
- is_private changed to: "0"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "andygoth"
- subsystem changed to: "16. Commands A-H"
- title changed to: "[apply]: overlong "wrong # args" error"
- type changed to: "Bug"