<i>[lexpand] expand-in-place command</i> status still Open with 4 other changes
by
.
D 2003-08-08T21:27:51
J icomment Logged\sIn:\sYES\s\nuser_id=498198\n\n>\sMaking\sthat\sexample\swork\swithin\sthe\scurrent\ssyntax\swould\n>\srequire\s[set]\sto\sexpand\sits\sarguments,\sthus\scausing\serrors\n>\sin\sthing\slike\n>\s\s\s\s\sset\sx\s[list\s1\s2\s3]\n>\sAlternatively,\s[set]\swould\sneed\sto\sknow\smore\sabout\show\seach\n>\sword\sargument\swas\sgenerated\s(is\sit\sthe\sresut\sof\san\n>\s[lexpand]?)\n\nBut\sit\sis\sby\sdesign\sthat\s"set\sx\s[lexpand\s...]"\swill\scause\san\nerror.\s\sDo\syou\sexpect\sif\sTIP\s#144's\ssyntax\sis\sadopted\sthat\nany\sof\sthese\swill\ssucceed?\n\nset\sx\s{}[...]\nset\sx\s{}$y\n\nHow\sabout\sthese,\sunder\scurrent\scircumstances?\n\neval\sset\sx\s[...]\neval\sset\sx\s$y\n\nI\svery\smuch\sdoubt\sit!\s\sWhat\sdo\sthese\sall\shave\sin\scommon?\s\sIn\nevery\scase\syou're\stelling\sTcl\sto\sexpand\seither\sthe\svalue\sof\ny\sor\sthe\sresult\sof\s[...]\sinto\smultiple\sarguments\sbefore\npassing\sthem\sto\sthe\sset\scommand.\s\sAll\sfour\sof\sthe\sabove\nbehave\sexactly\sthe\ssame\s(modulo\sneeding\sto\sfix\sthe\sbytecode\nissue)\sas:\n\nset\sx\s[lexpand\s[...]]\nset\sx\s[lexpand\s$y]\n\n(As\sfor\swhether\syou\swant\sto\ssay\sthat\salters\sTcl's\ssyntax,\sor\nas\sI\ssee\sit\sthat\sit\salters\sthe\ssubstitution\srules\sa\slittle\nbut\sdoes\snot\sintroduce\snew\ssyntax,\sis\slargely\smatter\sof\nsemantics.\s\sI\sdo\snot\ssee\sit\sas\saltering\sthe\ssyntax\sbecause\nthe\sparser\sremains\sunchanged,\sunlike\sthe\s{}\sprefix\sproposal.\n\s[lexpand]\sis\sjust\s[list]\swith\sa\sdifferent\sobject\stype,\sso\nit\s*is*\sjust\sa\scommand;\sit's\sjust\sthat\sthis\snew\sobject\stype\nis\streated\sspecially\sduring\sevaluation.\s\sWhether\s{}\sprefix\nor\s[lexpand]\sis\sadopted,\showever,\seither\sway\sthe\sEndekalogue\nwill\shave\sto\sbe\supdated,\sso\sthat's\snot\sin\sits\sself\sa\slogical\nreason\sto\schoose\sone\sover\sthe\sother.)\n\nI\sthink\sit\swould\sbe\sa\sreally\sbad\sidea\sfor\s*either*\sthe\s{}\nprefix\sor\sthe\s[lexpand]\scommand\sto\scause\sthat\sset\sto\nsucceed,\sbecause\sthat\swould\samount\sto\s*two*\schanges\sto\sthe\nEndekalogue,\sor\sat\sleast\sinconsistent\sbehavior:\s"if\s...\sis\nused,\sthe\svalue\sis\sexpanded\sinto\smultiple\sarguments\sbefore\npassing\sto\sthe\scommand.\s\soh,\sunless\sthat\scommand\sis\sset."\s\nWhy\swould\syou\swant\sthat,\sespecially\swhen\sthat's\snot\sthe\nbehavior\sexpected\sof\seval\sset\s...?\n
J login muonics
J mimetype text/plain
J username muonics
K 781929ffffffffffffffffffffffffffffffffff
U muonics
Z 43e49f4311e2870da969087b78034378