Skip to content
Tcl Source Code Artifact [6b481e0f49]
Login

Artifact [6b481e0f49]

Artifact 6b481e0f49d6cfaa1713fe1a7cd05e73011c03d9:

Ticket change [6b481e0f49] - New ticket [1771726fffffffff|1771726fff] <i>Forced Variable Types</i>. by deusued on 2007-08-10 14:58:12.
D 2007-08-10T14:58:12
J assignee msofer
J cmimetype text/plain
J comment As\sa\sloyal\sand\sdevout\sTcl\sprofessional\s(7+\syears),\sI\shave\scome\sacross\sa\ssituation\swhere\sI\swould\sreally\s-love-\sto\sbe\sable\sto\sforce\sa\svariable\stype,\sor\scast\sit,\sas\sa\ssingle\stype.\n\nWhile\sthis\smay\sincur\soverhead,\sI\swould\slike\sto\sbelieve\sthat\sit\scould\sbe\simplemented\sin\ssuch\sa\smanner\sthat\sboth\sexecution\sspeed\swould\sbe\ssignificantly\sfaster\s(no\scasting\srequired\sif\sa\sspecific\sbit\sis\sset\son\sthe\svariable)\sand\spotentially\sreducing\sthe\smemory\soverhead\snecessary\sto\scast\s(I'm\sout\sof\swater\shere,\sthough).\n\nex:\n%set\s-double\smyDouble\s1.002\n%lappend\smyDouble\s2\n\s/error\sthrown,\smuch\slike\spassing\san\sarray\sin\sas\sthe\sfirst\sarg/\n%set\s-string\smyString\s"1.01"\n%expr\s$myString\s+\s2.01\n\s/error\sthrown,\smuch\slike\spassing\s{}\sin/
J foundin None
J is_private 0
J priority 5\sMedium
J resolution None
J status Open
J submitter deusued
J subsystem 07.\sVariables
J title Forced\sVariable\sTypes
J type RFE
K 1771726fffffffffffffffffffffffffffffffff
U deusued
Z 318284841c26ec9b69de66a8fa9251dc