如何在 tcl 中表示无符号 32 位整数

how to represent unsigned 32 bit integer in tcl

如何在 tcl 中表示无符号 32 位整数?

要在 tcl 中转换的代码是:

 myAttributes=(uint)EAttribute.BASIC | (uint)EAttribute.CAPTURE;

按照 Link1 Link2

TCL 中的所有内容都是 String
set myAttributes [expr $a | $b]

这里,

$a is EAttribute.BASIC
$b is EAttribute.CAPTURE