.
D 2000-10-26T05:09:44
J assignee nobody
J closer nobody
J cmimetype text/plain
J comment OriginalBugID:\s1709\sRFE\nVersion:\s8.0.5\nSubmitDate:\s'1999-04-05'\nLastModified:\s'1999-04-05'\nSeverity:\sLOW\nStatus:\sUnAssn\nSubmitter:\spat\nChangedBy:\spat\nOS:\sAll\nOSVersion:\sNA\nMachine:\sNA\nFixedDate:\s'2000-10-25'\nFixedInVersion:\sNA\nClosedDate:\s'2000-10-25'\n\n\nName:\s\sAlexandre\sFERRIEUX\n\nemail:\s\[email protected]\n\nSupport:\s\sNone\n\nSynopsis:\s\sCompiler\ssupport\sfor\scustom\spreprocessors\swritten\sin\sTcl\n\n\n\nDesiredBehavior:\n\n\s\s\s\sA\smodification\sof\sthe\sbytecode-compiler\sthat\swould\sallow\speople\sto\sadd\n\n\s\s\s\stheir\sown\spreprocessing\sstep,\seven\swritten\sin\sTcl.\sObvious\sapplication:\n\n\s\s\s\sbang-comments.\sProponents\sof\sthe\sapproach\scould\stest\sit\sout\sfor\n\n\s\s\s\sthemselves.\n\n\s\s\s\s\n\n\s\s\s\sExplanation:\sthe\sidea\swould\sbe\sto\sgive\sa\s'<<'-like\n\n\s\s\s\scapability\sto\sTcl\scommands\s(now\sit\sis\srestricted\sto\schild\sprocesses),\n\n\s\s\s\sso\n\n\s\s\s\sthat\swe\scould\shand\s*any*\skind\sof\stext\sgarbage\sin-line\sto\san\sarbitrary\n\n\s\s\s\sTcl\scommand:\n\n\s\s\s\s\n\n\s\s\s\s\s\s\s\s\s\s\s\sinlinedata\s-until\sEOFEOFEOF\smyproc\n\n\s\s\s\s\s\s\s\s\s\s\s\shey\sboys\sthis\sis\sunrestricted\s{{{{{{{\n\n\s\s\s\s\s\s\s\s\s\s\s\stext]]]]]]]\s!\n\n\s\s\s\s\s\s\s\s\s\s\s\sEOFEOFEOF\n\n\s\s\s\s\n\n\s\s\s\sThe\sexample\sabove\swould\scall\smyproc\swith\sthe\stext\sas\sa\ssingle\sstring\n\n\s\s\s\sargument.\sThe\skey\sis\sthat\s'inlinedata'\shas\sto\sbe\sknown\sby\sthe\scompiler,\n\n\s\s\s\sso\sthat\sit\stakes\sthe\snew\sdelimiter\ssyntax\sinto\saccount\simmediately.\sOf\n\n\s\s\s\scourse,\sthis\scan\sonly\shappen\sif\sthe\sstream\sis\sbeing\scompiled\sas\scode\sat\n\n\s\s\s\sthis\spoint,\sso\sit's\snecessarily\sat\stoplevel\sof\sa\sscript\sfile\sor\sof\san\n\n\s\s\s\sevalled\s(uplevelled)\sstring;\showever\sit\sis\svery\sflexible\ssince\sit\n\n\s\s\s\sallows\n\n\s\s\s\sany\skind\sof\spreprocessing\sto\sbe\swritten\sand\stested\sin\spure\sTcl\s!\sFor\n\n\s\s\s\sexample,\sthe\sbang\scomment:\n\n\s\s\s\s\n\n\s\s\s\s\s\s\s\s\s\s\s\sproc\snobangs\ss\s{\n\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\sregsub\s-all\s"\\n\\[\s\\t\\]*!\\[^\\n\\]*"\s\\n$s\s""\ss\n\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\suplevel\s$s\n\n\s\s\s\s\s\s\s\s\s\s\s\s}\n\n\s\s\s\s\n\n\s\s\s\s\s\s\s\s\s\s\s\sinlinedata\snobangs\s;#\swithout\s-until,\sgoes\sto\send\sof\scurrent\n\n\s\s\s\sscript\n\n\s\s\s\s\s\s\s\s\s\s\s\s!\sHa,\sthis\sone\sworks:\s}}}\n\n\s\s\s\s\s\s\s\s\s\s\s\s!\sJust\sas\sa\s#.\sNo\sbig\sdeal\n\n\s\s\s\s\s\s\s\s\s\s\s\sproc\sbutthisone\s{}\s{\n\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s!\sis\smore\s}}}}}\n\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s!\simpressive\sindeed\s]]]]\n\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\sputs\syes\n\n\s\s\s\s\s\s\s\s\s\s\s\s}\n\n\s\s\s\sNotice\salso\sthat\sthe\snatural\srestriction\sof\sthe\sscope\sallows\sto\savoid\n\n\s\s\s\smany\sbackward\scompatibility\sproblems\s(especially\sominous\sin\sthe\sbang\n\n\s\s\s\scase),\ssince\sthe\spreprocessing\scan\sbe\sdone\son\sa\sper-script\sor\seven\n\n\s\s\s\sper-procedure\sbasis.\n\n\s\s\s\s\n\n\n\nComments:\n\n\s\s\s\sThis\sidea\shas\salready\sbeen\sposted\sin\sthe\skilometer-long\n\n\s\s\s\sbraces-in-comment\sthread,\sbut\sJeff\sHobbs\spointed\sout\sthat\sit\swas\n\n\s\s\s\soff-topic\sthere\sand\scould\seasily\sbe\soverlooked...\n\n\n\n
J foundin final:\s8.0.5
J priority 5\sMedium
J resolution None
J status Deleted
J submitter nobody
J subsystem 69.\sOther
J title Compiler\ssupport\sfor\scustom\spreprocessors\swritten\sin\sTcl
J type RFE
K 219275ffffffffffffffffffffffffffffffffff
U nobody
Z fd8b95e441fb783b136e2163a54bf0cc