Skip to content
Tcl Source Code History Of Ticket 219291
Login

History Of Ticket 219291

Artifacts Associated With Ticket 219291

  1. Ticket change [ce6a8add89] (rid 96049) by nobody on 2000-10-26 05:10:05:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      OriginalBugID: 2275 RFE
      Version: 8.0.4
      SubmitDate: '1999-06-21'
      LastModified: '2000-10-25'
      Severity: LOW
      Status: UnAssn
      Submitter: techsupp
      OS: Solaris
      OSVersion: 2.7
      Machine: Other
      FixedDate: '2000-10-25'
      ClosedDate: '2000-10-25'
      
      
      Name:
      Donal K. Fellows
      
      Comments:
      This code has been tested and found to work fine on Solaris (various
          versions,) SunOS 4.1 (where it was developed) and Linux (various
          versions)
      
      DesiredBehavior:
      This enhancement to the general mechanism for linking Tcl and C
          variables allows code that wishes to link an internal variable that
          contains a reference to a Tcl_Obj structure to the general Tcl-level
          interface to do so far more efficiently.  In particular, it prevents the
          (sometimes significant) degradation in performance that would otherwise
          be necessary if a scheme based on the standard Tcl_LinkVar() behaviour
          was used (which would be due to the conversion between strings and
          values) and can efficiently cope with any objects a programmer may wish
          to pass.
          
          The changes that I've made are currently structured as being in separate
          files, and as such they have no general impact upon the rest of Tcl.
          Integrating them should be a breeze (apart from writing the
          documentation and test suite <sigh>)
          
          As the code has been in serious use for around 2 years now (as part of a
          scheme to link properties of objects to Tcl variables so they can be
          joined to Tk entry widgets in an OO scheme I'm using in an application
          I'm working on,) I fully expect it to be free of bugs.  In particular,
          the code has no internal memory leaks (when used correctly, of course)
          and nor does it leak references or cause anything to get freed to early
          (which was the source of many wierd bugs, admittedly...)
          
          My implementation of the above feature (I emphasize that this is *not* a
          patch) and some minimalist documentation is available at:
             http://www.cs.man.ac.uk/~fellowsd/tcl/#scripts/linkObj
          
          I do not class this request-for-enhancement-inclusion as a show-stopper
          at all, since I have to use enhanced interpreters in any case (there is
          the rest of the OO code, and some proprietory display enhancements, all
          of which are absolute necessities at the moment.)
      
      
      
      
      
    4. foundin initialized to: "obsolete: 8.0.4"
    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: "07. Variables"
    10. title initialized to:
      Support for Linking Tcl Variables and C Variables Containing
      
    11. type initialized to: "RFE"
  2. Ticket change [af7789e5f1] (rid 97820) by dkf on 2000-11-08 20:28:51:

    1. foundin changed to: "obsolete: 8.4a3"
  3. Ticket change [32eb33360c] (rid 93699) by dkf on 2001-02-07 22:42:17:

    1. subsystem changed to: "09. Linked C Variables"
  4. Ticket change [bfd2d14772] (rid 102315) by dgp on 2001-04-04 04:46:23:

    1. subsystem changed to: "09. Linked C Variables"
  5. Ticket change [4e7aa43d2e] (rid 127240) by hobbs on 2002-01-17 01:49:44:

    1. assignee changed to: "dkf"
  6. Ticket change [7018392d75] (rid 100423) by dkf on 2004-10-04 21:00:38:

    1. icomment:
      Logged In: YES 
      user_id=79902
      
      There has also been interest shown on c.l.t for linking with
      float (single-precision IEEE) variables.
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  7. Ticket change [b0713f58a9] (rid 97981) by dkf on 2009-05-11 21:13:09:

    1. closedate changed to: "2009-05-11T14:13:09"
    2. closer changed to: "dkf"
    3. icomment:
      
      
      allow_comments - 1
      
      8.5 onwards supports linking of a wider range of basic types, but not of Tcl_Objs; those are perhaps best done directly through traces. In any case, I'm not pushing for this one any more.
      
      
    4. login: "dkf"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "dkf"