<i>Bytecompiled [switch] Command</i> status still Open with 4 other changes
by
.
D 2002-12-12T22:16:13
J icomment Logged\sIn:\sYES\s\nuser_id=79902\n\nWriting\sa\spiece\sof\scode\sto\sbytecode\scompile\sa\scommand,\sand\nespecially\sone\sthat\shas\ssub-scripts\slike\s[if],\s[for],\n[while]\sand\s[switch]\sis\sreally\smuch\sharder\sthan\sit\slooks.\s\nThere's\sa\slot\sof\sundocumented\sassumptions\sout\sthere.\s\s(I\nthink\sthat\sit\sshould\sbe\seasier\sto\sgenerate\sbytecode\sfor\ncommands\sthat\sdon't\shave\ssuch\sthings.\s\sAlmost\sstraight\nforward\sonce\syou\sunderstand\swhat's\sgoing\son\swith\sjump\nfixups,\sstack\sdepths\sand\sthe\sbytecode\smodels\sthemselves.)\n\nAbout\sthe\sspecific\spoints\syou\sraise:\n\nI\sthink\swe\sshould\shave\ssplit\sthe\s8.4.1\sbranch\soff\nimmediately\safter\sthe\s8.4.0\srelease.\s\s:^)\n\nThe\scomment\srefers\sto\sthe\sfact\sthat\swe\sdon't\scare\sif\sthe\nswitch\swas\scalled\sswitch,\sor\s"switch"\sor\s{switch}\sor\nwhatever;\sif\swe\sget\sto\sthis\scode,\swe\sassume\swe\sknow\sthat\nwe're\sat\sthe\sright\sspot.\s\sAnd\sthat\scomment\sonly\srefers\sto\nthe\snext\sline.\s\sThe\sones\safter\sthat\scheck\sthat\swe've\sgot\noptions\sthat\swe\sunderstand;\snot\sall\sof\sthem\sare\slike\sthat,\nand\sthere's\snot\sa\slot\sof\spoint\sin\strying\sto\scompile\sswitches\nwith\s-regexp\sas\sthere's\sno\sneat\sway\sto\sgenerate\sbytecode\sfor\nthem\sright\snow\s(I'd\sneed\sto\sadd\sbytecodes\stoo,\san\nINST_RE_MATCH\sif\snothing\selse.)\s\sI\sjust\shandle\sthe\scases\nwhere\swe\smight\sget\sa\sreal\sbenefit.\n\nThe\sother\scomment\sthat\syou\spick\sout\srelates\sto\sthe\sfact\sthat\nwe\sare\sin\sthe\smiddle\sof\shandling\sa\s{key\sbody\skey\sbody\s...}\nconstruct,\sand\sthat\sis\sreally\sdifficult\sto\sdo\sbecause\syou\ncan't\soperate\son\sa\scopy\sof\sthe\ssource\s(a\sfact\swhich\scost\sme\nabout\sa\sday's\ssolid\swork\sto\sdiscover\sand\sfix!)\n
J login dkf
J mimetype text/plain
J username dkf
K 644819ffffffffffffffffffffffffffffffffff
U dkf
Z 0d99a72cd2232483f399c0683f2d06b1