I must disavow my earlier claim that all four regexp commands would
always be executed.  This test seems to indicate otherwise:

$ rpm -q tcl
tcl-8.3.5-88
$ tclsh
% if [puts A;expr 1] {puts 1} elseif [puts B;expr 2] {puts 2}
A
1
% if [puts A;expr 0] {puts 1} elseif [puts B;expr 2] {puts 2}
A
B
2
%

Note that this behavior is in violation of the Tcl language syntax
described by the Tcl(n) man page.


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of 
your email blank.

Reply via email to