From: SourceForge.net <no...@so...> - 2010-08-15 11:12:56
|
Bugs item #3045010, was opened at 2010-08-14 19:36 Message generated for change (Settings changed) made by dkf You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110894&aid=3045010&group_id=10894 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. >Category: 22. [proc] and [uplevel] Group: development: 8.6b1.1 Status: Open Resolution: None Priority: 5 Private: No Submitted By: Andy Goth (andygoth) Assigned to: Donal K. Fellows (dkf) Summary: [apply]: overlong "wrong # args" error Initial Comment: [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" ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110894&aid=3045010&group_id=10894 |