Skip to content
Tcl Source Code Artifact [de24132cb4]
Login

Artifact [de24132cb4]

Artifact de24132cb48425219b5e0eaa1f0c6c153184f1af:

Ticket change [de24132cb4] - New ticket [1482667fffffffff|1482667fff] <i>More detailed information on [if ... else] and spaces</i>. by zoro2 on 2006-05-05 18:04:15.
D 2006-05-05T18:04:15
J assignee davidw
J cmimetype text/plain
J comment Lately\sI've\sbeen\sworking\swith\speople\sthat\sneed\sto\slearn\s\nTcl\sto\smaintain\slegacy\sapps.\sOne\sof\sthe\smost\scommon\s\nmistakes\sthey\sdo\sis\ssomething\slike\sthis:\n\nif\s{$a\s==\s$b}\s{\n\s\s\s\sputs\s"A==B"\n}else{\n\s\s\s\sputs\s"A!=B"\n}\n\nSince\sif...else\sare\skeywords\sfor\smost\slanguages,\speople\s\nlearning\sTcl\stend\sto\smake\ssuch\smistakes.\n\nAnother\sone\sis\sthat\speople\stend\snot\sto\sunderstand\sthat\s\n{\safter\sthe\scondition/else\sneeds\sto\sbe\sin\sthe\ssame\s\nline.\sIt\swould\sbe\suseful\sto\smention\sthis\sas\swell.\n\nI\sguess\sthis\sshould\sgo\sinto\sTcl4.html\sand\sTcl7.html\s\nshould\sreference\sand\srevise\sthis.\n\nI\swould\sassume\sthis\swould\sreally\shelp\snon-Tcl\s\nbackground\speople\sto\sunderstand\sthese\sthings\sbetter.
J foundin None
J priority 5\sMedium
J resolution None
J status Open
J submitter zoro2
J subsystem 75.\sTutorial
J title More\sdetailed\sinformation\son\s[if\s...\selse]\sand\sspaces
J type Bug
K 1482667fffffffffffffffffffffffffffffffff
U zoro2
Z b78f40948df526736edadb21e3bb0db4