<i>Having Tcl_WrongNumArgs return TCL_ERROR makes extension writing a little nicer</i> status still Open with 4 other changes
by
.
D 2018-07-05T06:26:19.550
J icomment Hi,\r\n\r\nthank\syou\sfor\sthe\sproposition\swhich\slooks\sbeautiful\sat\sa\sfirst\sglance.\r\n\r\nIMHO\sany\sfunction\sshould\sreturn\sthe\sstatus\sof\sitself.\r\n\r\nThere\smight\sbe\sa\slot\sof\stroubble\sinside\sTcl_WrongNumArgs\swhich\smay\sbe\sreported:\r\n\r\n\s\s\s*\s\s\sInvalid\sinterpreter\r\n\s\s\s*\s\s\sInvalid\sobjv\r\n\s\s\s*\s\s\sPosition\snumber\sout\sof\srange\r\n\r\nI\swould\sprefer,\sthat\sthe\sfunction\sreturns\san\serror\sinstead\sof\sreturnin\sa\sconvenience\svalue.\r\n\r\nIf\syou\sprefer,\syou\smay\salso\sdefine\sa\smacro\sor\san\sinline\sproc\sto\sbeautify\syour\scode.\sOr\suse\sthe\ssolution\sby\sSergey.\r\n\r\nHarald
J login oehhar
J mimetype text/x-fossil-wiki
J username oehhar
K 2c519736077ac092dbbce446759063f5f8427084
U oehhar
Z e5ff3767254f4e22e1d021eda138859b