<i>Pre-decision of substitution of the command arguments / {substitute inside}</i>.
by
.
D 2014-05-21T10:29:47.595
J assignee nobody
J closer nobody
J cmimetype text/plain
J comment I\sthink,\sif\sby\scompiling\sa\scommand\swe\smake\spossible\sto\sset\sa\sflag\slike\sTCL_SubstInside,\sthat\swill\sbe\sa\sgreat\sfeature\sto\sminimize\scommon\soverhead.\r\nThere\sare\smany\scases\swhere\swe\scould\suse\sthis\sfeature.\sFor\sexample\slogging\sin\smiddle\slevel,\ssomething\slike:\r\n\r\n%\slog\sDEBUG\s$Cmd\s"execute\sstatement:\s$statement,\sresult:\s[res2str\s$res],\s..."\r\n\r\nTo\sthis\seffect,\sif\sDEBUG\slevel\sis\soff,\sthe\ssubstitution\sis\stotally\sneedless.\r\nOf\scourse\swe\scould\senclose\sit\sin\sbraces\s(as\sbelow),\sand\safter\sverifying\sof\slevel\ssubstitute\sin\suplevel\sin\slog\scommand:\r\n\r\n%\slog\sDEBUG\s{$Cmd\s"execute\sstatement:\s$statement,\sresult:\s[res2str\s$res],\s..."}\r\n\r\nBut,\ssubstitution\sin\suplevel\sis\snot\sreally\sgood\ssolution,\simho,\sbut\sat\sthe\smoment\sonly\sthis\ssolution\sis\spossible,\sto\sminimize\soverhead.\r\n\r\nThe\slogik\sbellow\sis\snot\sreally\ssolution\salso,\sbecause\sis\stoo\slong\salso\sand\sif\slater\sI\swill\schange\salgorithn\sto\scheck\slog-level\sI\sshould\schange\smany\slines\sof\scode:\r\n\r\n%\sif\s{DEBUG\sni\s$log::levels}\s{log\sDEBUG\s{$Cmd\s"..."}}
J foundin >=\s8.5
J is_private 0
J login sebres
J priority 5\sMedium
J private_contact 50e9528765c18296566374b3fde2df942c394efd
J resolution None
J severity Minor
J status Open
J submitter sebres
J subsystem 47.\sBytecode\sCompiler
J title Pre-decision\sof\ssubstitution\sof\sthe\scommand\sarguments\s/\s{substitute\sinside}
J type RFE
K 820be4117d621f80b756074f0f784840451d0143
U sebres
Z bcdf9805d87c15686a05f7516e9cf6f0