![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.tcl archiveRe: switch statement and numeric constants
From: Donal K. Fellows <donal.k.fellows@manchester.ac.uk>
Date: Fri May 27 2005 - 12:20:55 CEST
Klaus wrote:
You probably want something like this:
switch -exact -- [expr {$x & ($VAL_A|$VAL_C)}] \
The next level of thought is to disconnect from representing things as
Donal.
|