While working a fix for the 'make tjc2' error, I borrowed some
wiki code to generate temp files, encounter this TJC error:
$ jaclsh
% proc randazAZchar {} {
return [format %c [expr {int(rand() * 26) + [expr {int(rand() * 10) > 5 ? 97 : 65}]}]]
}
% randazAZchar
i
% randazAZchar
u
% package require TJC
1.0
% TJC::compile randazAZchar
% Interal error while compiling proc "randazAZchar" in file RandazAZcharCmd
unknown type "operator" in {operator {
return [format %c [expr {int(rand() * 26) + [expr {int(rand() * 10) > 5 ? 97 : 65}]}]]
} {operator {34 4} {}} 0 rand {{34 4}}} at index 1
while executing
"error "unknown type \"$operand_cmdlist_elem_type\" in \{$operand_cmdlist_elem\} at index $j""
("if" else script line 2)
invoked from within
"if {$operand_cmdlist_elem_type == "subexpr"} {
....etc....
--
Tom Poindexter
tpo...@ny...
|