Skip to content
Tcl Source Code Artifact [3f214dfb0b]
Login

Artifact [3f214dfb0b]

Artifact 3f214dfb0b98f36b5b6c561742af59e5ec67d1bc:

Ticket change [3f214dfb0b] - New ticket [3107983fffffffff|3107983fff] <i>Glitch in the constant expression optimization.</i>. by avl42 on 2010-11-12 15:32:45.
D 2010-11-12T15:32:45
J assignee msofer
J cmimetype text/plain
J comment \s\s\s%\sproc\stcl::mathfunc::foo\sx\s{\sputs\s"foo:>>>$x<<<";\sreturn\s$x\s}\n\s\s\s%\sset\sx\s1;\sexpr\s{foo($x?"\s0x42\s":"\s0x41"\s)}\n\s\s\sfoo:>>>\s0x42\s<<<\n\s\s\s66\n\s\s\s%\sexpr\s{foo(1?"\s0x42\s":"\s0x41"\s)}\n\s\s\sfoo:>>>66<<<\n\s\s\s66\n\s\s\s%\s\n\nIf\sthe\scondition\sis\sa\sconstant,\sthen\sthe\sresult\sof\sthe\s"?:"\soperator\sis\snumericalized\seven\sif\sit\sgets\spassed\sto\san\sexternal\sfunction.
J foundin None
J is_private 0
J priority 5\sMedium
J resolution None
J status Open
J submitter avl42
J subsystem 47.\sBytecode\sCompiler
J title Glitch\sin\sthe\sconstant\sexpression\soptimization.
J type Bug
K 3107983fffffffffffffffffffffffffffffffff
U avl42
Z 939e3ee118bb42e129c8d36afd8f6580