Skip to content
Tcl Source Code Artifact [d3edc995cc]
Login

Artifact [d3edc995cc]

Artifact d3edc995cc1c386a1c8df71310a294c49cfc550a:

Ticket change [d3edc995cc] - Ticket [1446696fffffffff|1446696fff] <i>Tcl_ParseArgv as a useful non-Tk version of Tk_ParseArgv</i> status still Open with 4 other changes by dgp on 2006-06-17 03:00:36.
D 2006-06-17T03:00:36
J icomment Logged\sIn:\sYES\s\nuser_id=80530\n\n\nFor\sme,\sit\swould\sbe\seasier\sto\sreview\nthe\scode\sif\sit\swere\sa\spatch\sagainst\nthe\sTcl\ssources.\s\sStick\sthe\snew\sroutines\nin\stclIndexObj.c.\s\sFollow\sthe\sengineering\nmanual,\splease.\n\nThe\sset\sof\stypes\sindicated\sby\nTCL_ARGV_*\sis\sincomplete.\s\sLook\nat\sthe\sfull\slist\sof\sTCL_LINK_*\ntypes\snow\ssupported\sby\sTcl_LinkVar.\nIn\sfact,\scan\swe\sjust\shave\sthese\nroutines\sjust\sre-use\sthe\sTCL_LINK_*\nvalues?\n\nThe\sTcl_ParseArgv()\sand\nTcl_ParseArgvObj()\sroutines\sare\nseparate\simplementations.\s\sSeems\nto\sme\sit\swould\sbe\sbetter\sto\nimplement\sone,\sand\smake\sthe\sother\na\sthin\swrapper\saround\sit.\s\sI'd\nhave\sthe\sTcl_Obj\sone\sbe\sreal,\sand\nthe\sstring-based\sinterface\sas\sa\nwrapper,\sif\swe\seven\sbother\sto\shave\nit\sat\sall.\n\nThe\sTCL_DONT_SKIP_FIRST_ARG\sflag\nseems\spointless.\s\sJust\sexpect\sthe\ncaller\sto\spass\sin\sthe\scorrect\svalue\nfor\sobjv.\n\nIt's\snot\sclear\sto\sme\sthat\shaving\na\s"-help"\soption\salways\srecognized\nis\smore\suseful\sthan\sit\sis\sannoying.\nWho\sare\sthe\sexpected\scallers\sof\nthese\sroutines,\sand\sare\sthey\sexpected\nto\swant\sa\s"-help"\smore\soften\sthan\snot?\nIf\swe\sdrop\sthat,\swe\sdrop\sthe\swhole\ndefaultTable,\sas\swell\sas\sthe\sneed\sfor\nthe\sTCL_ARGV_NO_DEFAULTS\sflag.\n\nTCL_ARGV_NO_ABBREV\shas\sthe\ssame\smeaning\nas\sthe\sexisting\sTCL_EXACT,\sright?\s\sWhy\nnot\sre-use\sthat?\n\nRather\sthan\srequire\sobjv\sto\sbe\sover-writable,\nI\sthink\sI'd\sbe\shappier\swith\sa\sroutine\nthat\stook\sa\sconst\sobjv\sand\san\soptional\s\n&remainingObjv\sargument,\sfor\ssake\sof\sthose\ncallers\sthat\swant\sto\sknow\sthe\sunparsed\noptions.\s\sWith\sthat\srevision,\sit\swould\nbe\spossible\sfor\sthe\scaller\sto\smanage\nthe\sreaction\sto\swhether\sor\snot\sall\sobjv\nvalues\sare\sconsumed,\sso\sTCL_ARGV_NO_LEFTOVERS\nwould\sno\slonger\sbe\sneeded\seither.\n\nI\sthink\sthat\sdoes\saway\swith\sthe\sneed\nfor\sthe\sflags\sargument\sentirely.\n\nI\sguess\sthat's\senough\sfor\snow.\n\n\n
J login dgp
J mimetype text/plain
J username dgp
K 1446696fffffffffffffffffffffffffffffffff
U dgp
Z 369122a6aca5378ef1a8cd509d740b17