Skip to content
Tcl Source Code History Of Ticket 1068332
Login

History Of Ticket 1068332

Artifacts Associated With Ticket 1068332

  1. Ticket change [b3074135e8] (rid 98446) by nobody on 2004-11-17 22:59:47:

    1. assignee initialized to: "dgp"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      I'm using Tcl 8.4.6 but it seems to exists also in later versions. 
      My system is Linux 2.6.8.1, Slackware Current, Duron 800. 
       
      I'm maintaining TCL module for Polish Instant Messager called 
      Kadu. I want to use namespaces to separate loaded scripts from 
      each other. I define [on] command at C++ level and I need to 
      know what is the current namespace, while executing this 
      command, so I use Tcl_GetCurrentNamespace() to get it, but it 
      always returns "::". 
       
      Now, you'll propably ask - why I'm sure that it SHOULD be different 
      namespace than "::"? Well, I load script which is only one line and 
      looks like: 
       
      on connected some_proc 
       
      and my module loads it by code: 
       
      int status = Tcl_VarEval(interp, 
          "namespace eval ", last, " {", 
              data, 
          "}", NULL); 
       
      where 'last' is char* type and contains namespace for this script, 
      'data' is also char* type and contains script code data, which is the 
      above line in this case. So, when I call [on] in this one line, I 
      should get 'last' value by calling Tcl_GetCurrentNamespace inside 
      of [on], am I right? It returns to me "::". That's the point. 
       
      Googie, my e-mail is boogie (at) scripts.one.pl 
      
    4. foundin initialized to: "obsolete: 8.4.6"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "nobody"
    9. subsystem initialized to: "50. Embedding Support"
    10. title initialized to: "Tcl_GetCurrentNamespace doesn't work properly"
    11. type initialized to: "Bug"
  2. Ticket change [29f62d5ee0] (rid 118474) by dgp on 2004-11-18 13:29:49:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      please attach a test program
      that demonstrates the problem.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  3. Ticket change [a8ff5ef465] (rid 99080) by nobody on 2004-11-20 00:03:15:

    1. icomment:
      Logged In: NO 
      
      Whole module? It would be difficult, couse Kadu (the IM) takes 700kb and 
      TCL module for it takes about 250 kb :) 
       
      
      
    2. login: "nobody"
    3. mimetype: "text/plain"
    4. username: "nobody"
  4. Ticket change [690c49c81e] (rid 103176) by dgp on 2004-11-20 00:22:16:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      no.  just a small example program
      that demonstrates the problem.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  5. Ticket change [bd2533c30b] (rid 101865) by nobody on 2004-11-20 02:56:03:

    1. icomment:
      Logged In: NO 
      
      Ok, I'll do it but I don't promis that it will be done for a moment... I think I'll 
      upload it in few (1-3) days. 
      
      
    2. login: "nobody"
    3. mimetype: "text/plain"
    4. username: "nobody"
  6. Ticket change [bc8adf1f47] (rid 101769) by nobody on 2004-11-21 04:15:04:

    1. icomment:
      Logged In: NO 
      
      Deam >:[ It seems to be my foult. I've wrote very simple application and 
      here it works correctly. But I don't understeand... The way of using 
      namespaces in my module is quiet simple too and it doesn't work there ;( 
      Anyway, I'm so sorry for littering this place :/ 
      
      
    2. login: "nobody"
    3. mimetype: "text/plain"
    4. username: "nobody"
  7. Ticket change [54da012680] (rid 94024) by dgp on 2004-11-22 05:37:53:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      
      Many pathways to script evaluation
      force evaluation in the global namespace
      (script bound tk Tk events come to mind).
      Perhaps in your module things are passing
      through one of them.
      
      Closing this report.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. resolution changed to: "Invalid"
    5. status changed to: "Closed"
    6. username: "dgp"
  8. Ticket change [251ef2cfb0] (rid 131231) by dgp on 2004-11-22 05:37:54:

    1. closedate changed to: "2004-11-21T22:37:54"
    2. closer changed to: "dgp"