![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.tcl archiveswitch statement and numeric constants
From: Klaus <lts-rudolph@gmx.de>
Date: Fri May 27 2005 - 11:11:37 CEST
Hi all,
I want to the same thing in tcl as the following C code:
#define VAL_A 1
int x = VAL_A|VAL_C;
switch (x & (VAL_A|VAL_C)) {
the tcl code i tried was:
switch -regexp expr( x & VAL_A|VAL_C) \
but that did not work.
I think the usage on vars as const is wrong at first. But are there
Any hint?
Bye
|