Closed apnadkarni closed 9 years ago
Thank you for reporting this problem. Indeed the precedence is swapped, which can be proven by inspecting the compiler output:
% vectcl::compile { A && B || C }
upvar 1 A A
upvar 1 B B
upvar 1 C C
numarray::&& [set A] [numarray::|| [set B] [set C]]
It seems to be an error in the grammar.
Fixed in HEAD
Seems to be the precedence of && and || is incorrect (where incorrect means inconsistent with other languages including Tcl's expr)
Compare with