Dr. Dobb's Tcl-URL! - weekly Tcl news and links (Aug 23)

Dr. Dobb's Tcl-URL! - weekly Tcl news and links (Aug 23)

Post by Andreas Le » Wed, 25 Aug 2004 22:30:52

> Ronnie Brunner wants a way for a script to "give up" without
I seem to have missed this thread. Anyway, [return -level 0 foobar]
will *not* end the current piece of code.
% eval {return -level 0 foo; return -level 0 bar}
bar (not foo)

If the evaluating code does not sensibly handle some exceptions,
like break, or continue, then you're out of luck.

I've often wanted some simple test for whether something is
empty without turning it to a string first. There are various
ways to do the "null"-check for known object-types lists,etc, but
nothing for unspecified objects. Maybe due to the mere possibility
of a "real" (though un-Tcl'ish) object stringifying itself to "".
Maybe also, because some strings are non-empty seen as string, but
empty seen e.g. as list (" ").

PS: how does one find the th=... value for a certain thread on google?

Dr. Dobb's Tcl-URL! - weekly Tcl news and links (Aug 23)

Post by Bob Techen » Wed, 25 Aug 2004 22:45:34

"Andreas Leitgeb" < XXXX@XXXXX.COM > wrote

I usually start at the advanced group search
( http://www.yqcomputer.com/ ), enter some terms and
search. To get the thread URL, click on the "View Thread" link and
you'll get a frame on the left with the thread view, and a lot of
messages on the right. Click the "No Frame" link, and you'll get a
URL with the th=xxx that you can hand edit down to a minimal link.

Bob Techentin XXXX@XXXXX.COM
Mayo Foundation (507) 538-5495
200 First St. SW FAX (507) 284-9171
Rochester MN, 55901 USA http://www.yqcomputer.com/