.
D 2000-10-26T00:53:27
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s1986\sRFE\nVersion:\s8.0.5\nSubmitDate:\s'1999-05-04'\nLastModified:\s'2000-01-12'\nSeverity:\sLOW\nStatus:\sClosed\nSubmitter:\spat\nChangedBy:\shobbs\nOS:\sAll\nOSVersion:\sNA\nMachine:\sNA\nFixedDate:\s'2000-10-25'\nFixedInVersion:\sNA\nClosedDate:\s'2000-01-12'\n\n\nName:\s\sAlexandre\sFERRIEUX\n\nDesiredBehavior:\n\s\s\s\sIdea:\sinterpreting\swhitespace\sin\sa\sproc\sname\sas\sa\ssubcommand\soverride.\n\s\s\s\s\n\s\s\s\sExample:\n\s\s\s\s\n\s\s\s\s#\sToday\swe\shandle\ssubcommands\sthis\sway:\n\s\s\s\sproc\sa\s{sub\sargs}\s{\n\s\s\s\sswitch\s--\s$sub\s{\n\s\s\s\s\sb\s{...}\n\s\s\s\s\sc\s{...}\n\s\s\s\s\sdefault\s{error\s"a:\sUnknown\ssubcommand\s'$sub'"}\n\s\s\s\s}\n\s\s\s\s}\n\s\s\s\s\n\s\s\s\s#\sWith\s'space\scommands'\swe'd\sdo\sinstead:\n\s\s\s\sproc\sa\s{sub\sargs}\s{error\s"a:\sUnknown\ssubcommand\s'$sub'"}\n\s\s\s\sproc\s"a\sb"\sargs\s{...}\n\s\s\s\sproc\s"a\sc"\sargs\s{...}\n\s\s\s\s\n\s\s\s\sDetailed\smechanism:\swhen\sevaluating\sa\scommand\sline\s"a\sb\sc\sd\se",\sTcl\n\s\s\s\swould\sfirst\slook\sfor\sa\sproc\snamed\s"a\sb\sc\sd\se",\sthen\s"a\sb\sc\sd",\s...,\sthen\n\s\s\s\s"a".\sNotice\sthat\sthis\scan\sbe\smade\sfairly\sefficient,\sby\susing\sthe\sbase\n\s\s\s\sproc\sas\san\sanchor\s(basename)\swhere\swe'd\sstore\sa\slinked\slist\sof\sspecial\n\s\s\s\scases,\sordered\sby\sdecreasing\slength;\se.g.\sif\s"a\sb\sc"\sand\s"a\sb\sc\sd\se"\sare\n\s\s\s\soverridden,\sthe\sstructure\slinked\swith\sprocedure\s"a"\swould\scontain\sthe\n\s\s\s\slist\s{{4\s"b\sc\sd\se"}\s{2\s"b\sc"}}.\sThe\scomparisons\swith\sthe\sactual\n\s\s\s\sparameter\slist\scould\sbe\sdone\son\sstrings,\sor\slists,\sor\shash\svalues.\n\s\s\s\sNotice\sthat\sfor\sthe\s99%\sof\sprocs\swith\sno\ssubcommand\soverride,\sthis\slist\n\s\s\s\swould\sbe\sempty,\shence\sno\sperformance\sdrag.\n\s\s\s\s\n\s\s\s\sBenefit:\sthis\ssolves\sthe\smajor/minor\sway\sin\sa\sway\sthat's\svery\snatural\sin\n\s\s\s\sTcl.\n\s\s\s\s\n\n\nWhile\sthe\sconcept\sof\smajor/minor\sis\simportant,\sthis\sis\san\sincompatible,\nand\ssomewhat\sodd\swas\sof\sachieving\ssuch\sbehavior.\s\sWe'd\srather\sexplore\nmore\snatural\scommand\sextension\spossibilities.\s\n--\s01/12/2000\shobbs
J foundin final:\s8.0.5
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 81.\sBundled\sPackages
J title 'space\scommands'\sto\ssolve\smajor/minor
J type RFE
K 218127ffffffffffffffffffffffffffffffffff
U nobody
Z 825225dc1d4cb9be9ee8fb0556e1183d