.
D 2010-08-14T18:36:49
J assignee dkf
J cmimetype text/plain
J comment [apply]'s\s"wrong\s#\sargs"\serror\smessage\sis\simpractically\slong,\sbecause\sit\scontains\sthe\sfull\slambda.\s\sI\simagine\sthis\sis\sa\sconsequence\sof\susing\sTcl_WrongNumArgs()\swith\sobjc=2.\s\sFor\sexample:\n\napply\s{{msg\srep}\s{\n\s\s\s\sfor\s{set\si\s0}\s{$i\s<\s$rep}\s{incr\si}\s{\n\s\s\s\s\s\s\s\sputs\s$msg\n\s\s\s\s}\n}}\n\ngives\sthe\serror:\n\nwrong\s#\sargs:\sshould\sbe\s"apply\s{{msg\srep}\s{\n\s\s\s\sfor\s{set\si\s0}\s{$i\s<\s$rep}\s{incr\si}\s{\n\s\s\s\s\s\s\s\sputs\s$msg\n\s\s\s\s}\n}}\smsg\srep"\n\nI\ssuggest\somitting\sthe\slambda,\ssince\sthe\sonly\srelevant\spart\s(the\sparameter\slist)\sis\srepeated\sat\sthe\send\sof\sthe\serror\sanyway.\s\sIn\smy\sexample,\sthis\swould\sbe\ssimply:\n\nwrong\s#\sargs:\sshould\sbe\s"apply\slambdaExpr\smsg\srep"
J foundin None
J is_private 0
J priority 5\sMedium
J resolution None
J status Open
J submitter andygoth
J subsystem 16.\sCommands\sA-H
J title [apply]:\soverlong\s"wrong\s#\sargs"\serror
J type Bug
K 3045010fffffffffffffffffffffffffffffffff
U andygoth
Z 8f406abb9b0a024cada190ddf9c1eef1