> 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
Disavow nothing - that was a bug in the compiler:
(this is 8.4.4)
(Tcl) 49 % if [puts A;expr 1] {puts 1} elseif [puts B;expr 2] {puts 2}
A
B
1
and in fact you could see this when avoiding the compiler in 8.3:
tellar [~] 91 > tclsh8.3
% if [puts A;expr 1] {puts 1} elseif [puts B;expr 2] {puts 2}
A
1
% eval {if [puts A;expr 1] {puts 1} elseif [puts B;expr 2] {puts 2}}
A
B
1
Jeff
--
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.