John Buckman wrote:

> HOWEVER, Jeremy wrote:
> You could throw the handle name into a namespace variable.  They don't
> currently get cleaned up.
> 
> and he's absolutely right, as code like this:
> 
> catch {namespace eval space {}}
> catch {adp_puts $space:x}
> set space:x 1
> 
> works as expected. So, Jeremy's tip to put per-interpreter globals into
> a namespace is an elegant work-around.

Disagree about the "elegant" part. I find the fact that ::foo is cleaned
up, while ::bar::foo isn't counterintuitive, and something I would
change "in a perfect world". Suggesting that people rely on this
behavior makes it harder to change in the future.

-- 
Nis Jorgensen                    Jabber: [EMAIL PROTECTED]
GPI ICT Application Developer    Yahoo: nizzjorgensen
+31 20 718 2087                  ICQ:9005019


--
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