Tk Library Source Code

View Ticket
Login
Ticket UUID: 741653
Title: hooks not installed when channel namespaced
Type: Bug Version: None
Submitter: juliannoble Created on: 2003-05-22 11:37:04
Subsystem: comm Assigned To: hobbs
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2003-10-22 06:08:40
Resolution: Duplicate Closed By: hobbs
    Closed on: 2003-10-21 23:08:40
Description:
If the chan arg to comm::comm new is namespace 
qualified, 
e.g  comm::comm new ::mychan
or even
comm::comm new ::comm::mychan
then hooks don't get properly installed.
parray on comm::comm shows most members with 
the specified chan, e.g
::comm::comm(::comm::mychan,listen)    = 1
but the hooks are shown as:
::comm::comm(mychan,hook,incoming)   = {...
and they don't fire.
Maybe one just isn't supposed to supply anything 
other than a simple name to comm::comm new, in 
which case I guess this is just a doc issue.

On a related note, it'd be nice if comm::comm new 
actually returned the fully qualified name of the 
channel it just built so you don't have to 
guess/know where it puts it.
Seems strange that channels are listed unqualified 
by 'comm::comm channels'.
Maybe I'm a bit confused - but something appears 
wrong.
User Comments: hobbs added on 2003-10-22 06:08:40:
Logged In: YES 
user_id=72656

dup'ed by 817351 - working on making this handle namespace 
correctly

andreas_kupries added on 2003-10-22 04:47:26:
Logged In: YES 
user_id=75003

Jeff, this bears likeness to the bug reported by Hemang I 
think.