<i>"dict with" binds to varibles outside its scope</i> status still Open with 4 other changes
by
.
D 2010-01-13T03:17:34
J icomment I\shit\sthis\sissue\swhen\sa\sdictionary\sbeing\spassed\sas\sa\sparameter\shad\san\sadditional\skey\sadded,\sand\sthe\snew\skey\shappened\sto\sbe\sthe\ssame\sstring\sas\sa\slocal\svariable\sin\sa\sprocedure\sthat\sused\s"dict\swith"\son\sthe\sdictionary.\sNeither\sthe\sperson\swho\swrote\sthe\sproc\snor\sthe\sperson\swho\sadded\sthe\skey\sunderstood\sthis\sside\seffect\s(I\sreally\scannot\sconsider\sit\sa\sfeature),\sso\sthe\sresulting\scorrupted\svariable\sbug\swas\smysterious.\sEven\susing\s"apply",\sit's\sstill\sdangerous\sto\suse\s"dict\swith"\son\sa\sdictionary\sparameter\sunless\syour\snaming\sconvention\sfor\skeys\sand\slocal\svariables\sensure\sthe\stwo\swon't\sconflict.\sUsing\s"dict\supdate\s[dict\sget\s...]\s..."\savoids\sthe\sproblem,\sso\sperhaps\san\sexample\sof\sthat\swould\shighlight\sthe\sissue.\n
J login mpdanielson
J mimetype text/plain
J username mpdanielson
K 2929546fffffffffffffffffffffffffffffffff
U mpdanielson
Z 5cbd6c2cba124b176413fcb98f8ef52d