Skip to content
Tcl Source Code Artifact [be6f897507]
Login

Artifact [be6f897507]

Artifact be6f897507227ca8e566c8a44da41fbff557f3b5:

Ticket change [be6f897507] - Ticket [2251175fffffffff|2251175fff] <i>Expand ({*}), constants, and list syntax</i> status still Open with 4 other changes by ferrieux on 2008-11-12 07:01:28.
D 2008-11-12T07:01:28
J icomment \n\nFile\sAdded\s-\s301046:\sexpand1.patch\n\nPlease\sfind\sattached\sa\spatch\simplementing\sSolution\s(1):\sdelayed\scollapse.\n\nIt\spasses\sthe\stest\ssuite,\sincluding\s[info\sframe],\ssince\sit\srespects\sthe\stying\sbetween\sTIP280-data\sand\sthe\soriginal\s(ROM)\ssource,\swhile\sdoing\sthe\snecessary\scollapse\sjust\sbefore\suse,\swhich\sis\s(a)\sbefore\sliteral\screation\sin\sTclCompileScript\sand\s(b)\sbefore\sstring\sappendage\sin\sTclEvalEx.\n\nOne\sword\sabout\scomplexity:\sI\sdid\smy\sbest\sto\sminimize\sthe\simpact\sfor\sthe\s"rest\sof\sus"\snever\sexpanding\sa\sliteral\s;-)\nFor\sthis,\sI\skept\sthe\ssize\sof\sthe\sTcl_Token\sstruct\sunchanged.\sOnly\sI\sexploited\sthe\sfact\s(documented\sin\scomments\sin\stcl.h)\sthat\sTCL_TOKEN_*\svalues\swere\sactually\sbits\sso\sthat\sclass\stests\scan\sbe\sdone\seasily,\sthat\sis,\sby\sbitwise\sAND.\sThe\sfunny\sfact\sis\sthat\snowhere\sin\sthe\score\sis\sthis\sactually\sdone,\sall\stests\sare\sdone\swith\s"==".\sFor\sthis\spatch\sI\shad\sto\sdefine\sa\smodifier\sbit\sin\sthis\sfield,\sdefined\sonly\sfor\stype\sTCL_TOKEN_TEXT.\sSo\sI\sdid\schange\sall\sexisting\schecks\s"==TCL_TOKEN_TEXT"\sinto\s"&TCL_TOKEN_TEXT",\swhich\sallows\sfor\sgraceful\signorance\sof\sthe\smodifier\severywhere\sit\sneeds\sbe.\sI\sbelieve\sthe\sperf\simpact\sof\sthis\schange\sshould\sbe\sbetween\szero\sand\sepsilon\s;-)\n\nPlease\sreview.\nFile\sAdded:\sexpand1.patch\n
J login ferrieux
J mimetype text/plain
J username ferrieux
K 2251175fffffffffffffffffffffffffffffffff
U ferrieux
Z 0b65434b5da6d6aab46042eb88bc29a5