Skip to content
Tcl Source Code Artifact [96165454bd]
Login

Artifact [96165454bd]

Artifact 96165454bd01453267f4da062e378f9e7f13f0fb:

Ticket change [96165454bd] - Ticket [8e91ec4866db095f|8e91ec4866] <i>{TCL LOOKUP VARNAME} vs {TCL READ VARNAME}</i> status still Open with 3 other changes by aspect on 2015-07-24 02:51:38.
D 2015-07-24T02:51:38.291
J icomment That\sdistinction\ssounds\svery\ssubtle\sto\sme.\s\sVar\sstructures\saren't\r\nsomething\sI'm\sfamiliar\swith\sfrom\sthe\sscript\slevel,\sand\sI'm\snot\ssure\r\nI\sshould\sbe!\s\sIt\shas\sstruck\sme\sa\sfew\stimes,\sand\sanecdotally\sI\shave\r\nrecord\sof\sevilotto\squestioning\sthe\sarray\sbehaviour\son\schat\smonths\s\r\nago.\r\n\r\nFor\sthe\sarray\scases\sI\scan\ssort\sof\sunderstand\s(LOOKUP\sif\sthe\sarray\r\ndoesn't\sexist;\sREAD\sif\sthe\selement\sdoesn't),\sbut\sthe\sdifference\r\nbetween\sthe\sfirst\stwo\scases\sisn't\sobvious.\s\sIs\sthis\sinterpreted\svs\r\nbytecode\spaths?\r\n\r\nI\sdon't\ssee\sthat\sthe\sdistinction\saids\sthe\sprogrammer\sto\swrite\r\ncorrect\scode.\s\sBoth\sproduce\sexactly\sthe\ssame\serror\smessage,\sgiving\r\nno\shint\sthat\sthe\sdifference\sexists,\sand\swhen\sI\swant\sto\strap\sone\sI\r\npractically\salways\swant\sto\strap\sboth,\swhich\srequires\stwo\sindependent\r\ntrap\sclauses\sand\scode\sduplication.\s\sI\sthink\sthey\sshould\sat\sleast\r\nshare\sa\scommon\sprefix\sto\sfacilitate\sthis\scommon\scase.\r\n\r\nPerhaps\s{TCL\sVARNAME\sREAD}\swould\shave\sbeen\sa\sbetter\sstructure,\sbut\sI\r\nthink\sthat\shorse\shas\sbolted.\s\sPerhaps\swe\scan\ssalvage\ssomething\sin\r\nthe\sform\sof\s{TCL\sLOOKUP\sVARNAME\s$varName\s$op}\sbut\sthat's\sstarting\sto\r\nlook\spretty\scumbersome.\s\s{TCL\sLOOKUP\sVARNAME\s?varName?}\sacross\sthe\r\nboard\sseems\spretty\sappealing\sto\sme\sright\snow.\r\n\r\nI\scould\sbe\sconvinced\sthat\sit's\suseful\sto\shave\sdistinct\sREAD\sand\r\nLOOKUP\serror\scodes,\sbut\sthat\smoves\sthe\sfocus\son\sto\sdocumentation.\r\nAnd\sthis\ssounds\slike\sa\sright\spain\sto\sexplain\sto\simpatient\snovice\r\nprogrammers\s--\senough\sthat\sI'd\srather\smess\swith\scode\sthan\sprose\s;-).
J login aspect
J mimetype text/plain
K 8e91ec4866db095f1d90d4e2fd468305a8a80bf8
U aspect
Z 6d6632c71b6b637de5da1dc59a3cc7b9