Tcl Source Code

Artifact [50e6b9e065]
Login

Artifact 50e6b9e065730ed14fefc844985813aa838386f1:

Ticket change [50e6b9e065] - Closed ticket [8e91ec4866]: {TCL LOOKUP VARNAME} vs {TCL READ VARNAME} plus 8 other changes by dkf 2015-08-02 16:48:44.
D 2015-08-02T16:48:44.570
J closedate 2457237.20051545
J closer dkf
J icomment <blockquote><i>That\sdistinction\ssounds\svery\ssubtle\sto\sme.</i></blockquote>\r\nYes,\sbut\sthat's\show\sit\sis\sinternally.\sWhen\syou\sput\scode\sinto\sa\sprocedure\s(well,\sanything\swith\sa\sLocal\sVariable\sTable\sdefined)\syou\schange\show\svariables\sare\slocated;\ssimple\svariable\sreferences\sbecome\sa\slot\smore\sefficient,\sand\sthe\slookup\sof\sthem\sno\slonger\sfails\sever,\sso\sno\s<tt>TCL\sLOOKUP\sVARNAME</tt>\sfailure,\syet\sthe\sread\smight\sstill\sfail\sif\sthe\svariable\sentry\srefers\sto\sa\scurrently\sunset\svariable,\shence\s<tt>TCL\sVARNAME\sREAD</tt>\sbeing\sthe\serror\scode.\r\n<p>\r\nIn\sshort,\sTcl\sdoes\snot\sguarantee\sto\sgive\sexactly\sthe\ssame\sreason\sfor\sfailing\sin\sall\scases\swhere\sit\sgenerates\sa\sfailure,\seven\sif\sthose\scases\sare\ssuperficially\ssimilar;\sthose\scases\smay\sbe\sactually\slooking\svery\sdifferent\sfrom\sTcl's\sown\sinternal\sperspective.\sI\sdon't\spropose\sto\salter\sanything,\sor\sdocument\sthat\sthis\svariation\soccurs.\sWe\smight\schange\sit\sall\swithout\swarning\s(but\sprobably\swon't;\swe're\slazy\stoo!)
J login dkf
J mimetype text/html
J resolution Rejected
J status Closed
J subsystem 07.\sVariables
J username dkf
K 8e91ec4866db095f1d90d4e2fd468305a8a80bf8
U dkf
Z e89275edf0ea9e6c45015ac5864a2fac