Re: switch statement and numeric constants
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.tcl archive

Re: switch statement and numeric constants

From: Donal K. Fellows <donal.k.fellows@manchester.ac.uk>
Date: Fri May 27 2005 - 14:48:55 CEST

Christopher Nelson wrote:
> Oh, I don't know. I think:
> switch -- $something {
> FOO {
> }
> BAR {
> }
> }
> is fairly close to the C:

That'd be fine (even highly recommended), except he's switching on bit
patterns and not simple symbolic constants. That makes things much messier.

Donal.
Received on Thu Sep 29 14:19:28 2005