Skip to content
Tcl Source Code History Of Ticket 2093947fffffffff
Login

History Of Ticket 2093947fffffffff

Artifacts Associated With Ticket 2093947fffffffff

  1. Ticket change [f302711978] (rid 109653) by dkf on 2008-09-04 22:48:00:

    1. assignee initialized to: "msofer"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      I've been experimenting with traces and coroutines as part of the discussion on http://wiki.tcl.tk/21537 (as to why Lars's proposal isn't good enough) and I came across this:
      
      $ make shell
      % proc foo {} {set v 1; trace add variable v {write unset} bar; yield; set v 2; yield; set v 3}
      % proc bar args {puts $args};namespace path tcl::unsupported;coroutine a foo
      % a
      v {} write
      % a
      v {} write
      v {} unset
      3
      % a
      ambiguous command name "a": after append apply array atProcExit auto_execok auto_import auto_load auto_load_index auto_qualify
      % coroutine a foo
      % a
      v {} write
      % rename a {}
      % a
      ambiguous command name "a": after append apply array atProcExit auto_execok auto_import auto_load auto_load_index auto_qualify
      
      It would be *very* nice if variable unset traces were run when a coroutine is "deleted early" since that would mean that the assumption that unset traces could be used to handle scoping of resource lifetime to procedure body execution lifetime was guaranteed. And in a strong sense, the variables are unset when the created coroutine is deleted.
      
      There's probably also a related issue with tailcall not calling unset traces on local variables, but I've not checked. ;-)
      
      I'm sorry these things make stuff messier. Resolving them would, I think, go a long way towards making the NRE stuff fit to come out of the tcl::unsupported closet.
      
    4. foundin initialized to: "obsolete: 8.6a3"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "dkf"
    10. subsystem initialized to: "None"
    11. title initialized to: "coroutine+unset trace misfeature"
    12. type initialized to: "Bug"
  2. Ticket change [9cd13ec590] (rid 96208) by msofer on 2008-09-05 08:22:10:

    1. assignee changed to: "dkf"
    2. icomment:
      Logged In: YES 
      user_id=148712
      Originator: NO
      
      Fixed in HEAD: insure that unset traces ignore the "execEnvPtr->rewind" that signals coroutine deletion.
      
      Leaving open and reassigning: should the same thing be done for unwinding when interpreter limits are violated? When unwinding the interp? Possibly ... possibly not.
      
      
    3. login: "msofer"
    4. mimetype: "text/plain"
    5. resolution changed to: "Fixed"
    6. username: "msofer"
  3. Ticket change [0ff5eb6278] (rid 94884) by dkf on 2008-09-05 20:14:46:

    1. icomment:
      Logged In: YES 
      user_id=79902
      Originator: YES
      
      Traces should run when unwinding when a limit is violated, but *not* if those traces involve executing further Tcl code in the interpreter that's over the limit. Traces in C should be OK.
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  4. Ticket change [919bebfdc4] (rid 120644) by dkf on 2008-10-06 15:27:51:

    1. closedate changed to: "2008-10-06T08:27:51"
    2. closer changed to: "dkf"
    3. status changed to: "Closed"
    4. subsystem changed to: "46. Traces"