| Store | Cart

[TCLCORE] Re: TIP#181: Add a [namespace unknown] Command

From: <d...@users.s>
Thu, 30 Jun 2005 17:02:51 +0000
I was looking at modifying the
implementation of TIP 181 to
use [::tcl::DefaultUnknown] as
the default [namespace unknown]
handler, when I noticed the 
implementation did not work as
I expected it to.

Then I read the TIP again, and it
proposes something different than
I would expect.

The relevant example is:

  namespace eval ::foo {
      ::bar::soom
  }

I think I want the [namespace unknown]
handler of ::bar to be the one that
goes looking for [::bar::soom], but
what's proposed and implemented is to
have the [namespace unknown] handler
of ::foo do the search instead.

This means each handler can't really be
specialized in a useful way, since they
all have to be able to search for commands
in any namespace, rather than be tasked
with a limited search for commands relevant
to their own namespace only.

Anyhow, I'm surprised by the difference
between the proposal and my expectations.
I suspect others may have misread this one
as well.  At least worth talking about
again.

DGP


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Tcl-Core mailing list
Tcl-...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tcl-core

Recent Messages in this Thread
d...@users.s Jun 30, 2005 05:02 pm
Neil Madden Jun 30, 2005 08:17 pm
Messages in this thread