Skip to content
Tcl Source Code Artifact [e4a4a016df]
Login

Artifact [e4a4a016df]

Artifact e4a4a016df671279dd0aaa56990500863f8370aa:

Ticket change [e4a4a016df] - Ticket [219378ffffffffff|219378ffff] <i>&quot;string range&quot; enhancement request</i> status still Open with 4 other changes by dkf on 2000-12-06 17:36:06.
D 2000-12-06T17:36:06
J icomment OK,\sI\sthink\sI\sperhaps\sought\sto\sexplain\smyself.\n\nFirstly,\sit\sis\strivially\seasy\sto\swork\saround\sthis\susing\s[foreach],\sthough\sthis\sis\sa\smessy\ssolution,\sadmittedly.\n\nSecondly,\sthe\soptimal\scurrent\swork-around\smay\swell\sbe\sthis:\n\s\s\seval\s[linsert\s$list_of_two_indices\s0\s\s\sstring\srange\s$string]\n(It\sis\soptimal\ssince\sit\sguarantees\sthat\sthere\sis\sno\sreal\sdouble\sevaluation\sof\sany\svalues,\seven\sthough\sit\slacks\sa\slot\son\sthe\s"optimality\sof\srepresentation"\sfront\stoo.)\n\nThirdly,\sa\sfull\ssolution\sought\sto\saddress\sthe\sfact\sthat\sthere\sare\smany\splaces\sin\sTcl\swhere\sthis\ssort\sof\sconversion\sof\slists\sto\smultiple\sarguments\swould\sbe\suseful,\sand\sthat\sa\smore\sgeneral\ssolution\s(a\sla\sthe\s{expand}$list\sdiscussion\sof\sa\sfew\smonths\sback)\swould\sbe\sa\sfar\smore\sefficient\suse\sof\speople's\stime\sthan\sa\shorde\sof\sspecial\sfixes\sscattered\sthroughout\sTcl,\sTk\sand\sall\sthe\svarious\sextensions.\s\sIf\snothing\selse,\sthe\smaintenance\soverhead\sis\smuch\slower.\s\s(Not\sthat\sI'm\sadvocating\sa\sparticular\ssyntactic\sconstruct\shere\s-\sjust\sthe\sgeneral\sconcept.)\s\sPerhaps\sI\sought\sto\sgo\sback\sover\sthat\sdiscussion\sand\ssee\sif\sa\ssuitable\sTIP\scan\sbe\sculled\sfrom\sit...?\s\sOnly\sproblem\swith\sdoing\sthis\sis\sthat\sit\sresults\sin\sa\sshed-load\sof\swork\sfalling\son\sme\sfrom\sa\sgreat\sheight...\s\s:^)\n
J login dkf
J mimetype text/plain
J username dkf
K 219378ffffffffffffffffffffffffffffffffff
U dkf
Z 5fbc614471bb5593f2361675eecfdf08