From: Harald Oehlmann on
On 22 Jun., 17:37, Keith <kilowattra...(a)gmail.com> wrote:
> Switch is hanging when I don't have a match and want it to use default.
> For example sometimes $systype is already M81S and I don't want switch to do
> anything except just put out a command like puts, but tcl 8.4/8.5 just
> hangs.

Hi Keith,
sorry for this unpleasant experience.

IMHO your code is 100% correct and I have never observed that switch
"hangs".
Possible reasons:
- there is an event waiting which is executed in the "update
idletasks".
Eventually, this event calls "vwait" or "tkwait" and will never
return.
- broken TCL interpreter (if so provide system, source of interpreter,
compiler etc)

Hope this helps,
Harald
From: Keith on



On 6/22/10 8:46 AM, in article
346befd9-f78f-4f33-af9a-6514d293e04c(a)r27g2000yqb.googlegroups.com, "Harald
Oehlmann" <wortkarg2(a)yahoo.de> wrote:

> On 22 Jun., 17:37, Keith <kilowattra...(a)gmail.com> wrote:
>> Switch is hanging when I don't have a match and want it to use default.
>> For example sometimes $systype is already M81S and I don't want switch to do
>> anything except just put out a command like puts, but tcl 8.4/8.5 just
>> hangs.
>
> Hi Keith,
> sorry for this unpleasant experience.
>
> IMHO your code is 100% correct and I have never observed that switch
> "hangs".
> Possible reasons:
> - there is an event waiting which is executed in the "update
> idletasks".
> Eventually, this event calls "vwait" or "tkwait" and will never
> return.
> - broken TCL interpreter (if so provide system, source of interpreter,
> compiler etc)
>
> Hope this helps,
> Harald


Never mind it was a mistake in the proc for the *prior* command. It's always
something else...

--�
Best Regards,�Keith
http://home.comcast.net/~kilowattradio/






From: Alexandre Ferrieux on
On Jun 22, 6:08 pm, Keith <kilowattra...(a)gmail.com> wrote:
> On 6/22/10 8:46 AM, in article
> 346befd9-f78f-4f33-af9a-6514d293e...(a)r27g2000yqb.googlegroups.com, "Harald
>
>
>
>
>
> Oehlmann" <wortka...(a)yahoo.de> wrote:
> > On 22 Jun., 17:37, Keith <kilowattra...(a)gmail.com> wrote:
> >> Switch is hanging when I don't have a match and want it to use default..
> >> For example sometimes $systype is already M81S and I don't want switch to do
> >> anything except just put out a command like puts, but tcl 8.4/8.5 just
> >> hangs.
>
> > Hi Keith,
> > sorry for this unpleasant experience.
>
> > IMHO your code is 100% correct and I have never observed that switch
> > "hangs".
> > Possible reasons:
> > - there is an event waiting which is executed in the "update
> > idletasks".
> >   Eventually, this event calls "vwait" or "tkwait" and will never
> > return.
> > - broken TCL interpreter (if so provide system, source of interpreter,
> > compiler etc)
>
> > Hope this helps,
> > Harald
>
> Never mind it was a mistake in the proc for the *prior* command. It's always
> something else...
>

To avoid things like that, [puts] is your friend !

-Alex