Skip to content
Tcl Source Code History Of Ticket 944803ffffffffffffffffffffffffffffffffff
Login

History Of Ticket 944803ffffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 944803ffffffffffffffffffffffffffffffffff

  1. Ticket change [4b4a76f665] (rid 126679) by msofer on 2004-04-29 18:54:44:

    1. assignee initialized to: "msofer"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      A proposed new [apply] command to apply anonymous
      functions, giving one possible (but different)
      implementation for the goals of TIP 187 (Functions as
      Values).
      Attaching a patch that provides the command; a possible
      manual page is at http://utdt.edu/~mig/apply.html.
      
      
      
    4. foundin initialized to: "None"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "msofer"
    9. subsystem initialized to: "22. [proc] and [uplevel]"
    10. title initialized to: "new [apply] command"
    11. type initialized to: "RFE"
  2. Ticket change [91dbc6494b] (rid 120689) by msofer on 2004-04-30 01:54:45:

    1. icomment:
      
      
      File Added - 85535: apply.patch
      
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  3. Add attachment "apply.patch" [d4a8995b8b] (rid 123488) by msofer on 2004-04-30 01:54:45.

  4. Ticket change [96660bd2e0] (rid 106318) by dkf on 2004-04-30 15:43:29:

    1. icomment:
      Logged In: YES 
      user_id=79902
      
      Issues, some of which are not serious in demo code:
       * Which is the correct namespace to execute in?
       * The errorInfo messages are misleading
       * Should the guts of TclObjInterpProc be extracted so that
      they can be called from [apply]?  IncrTcl (and other
      extensions?) might also be a client of such a function, even
      if it was internal, so whatever it is ought to go in the
      stubs table.
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  5. Ticket change [fef6d9bc41] (rid 108677) by msofer on 2004-04-30 17:28:36:

    1. icomment:
      
      
      File Added - 85602: apply2.patch
      
      Logged In: YES 
      user_id=148712
      
      Addressing only the first issue, new apply2.patch with
      manpage at http://utdt.edu/~mig/apply2.html
      
      This version executes the anonymous function in the global
      namespace by default, but a different (constant) namespace
      can be specified.
      
      The remaining two issues are still unaddressed; this is
      experimental code, those matters will definitely be fixed
      before applying.
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  6. Add attachment "apply2.patch" [deb2a1627c] (rid 114896) by msofer on 2004-04-30 17:28:36.

  7. Ticket change [360e1ce1cb] (rid 107053) by coldstore on 2004-08-23 06:41:15:

    1. icomment:
      Logged In: YES 
      user_id=19214
      
      Following discussion on tkchat, it is possible (and
      desirable) to simplify struct Proc so that it no longer
      requires a Command, but instead directly points to its
      defining Namespace ... this will require further
      modification to the [rename] command, to preserve rename
      semantics (where renaming a command associated with a proc
      will change the proc's Namespace) ... to be attached in a
      different patch.
      
      Justification: a proc needs to know its own namespace
      (although except for the [variable] command, it's hard to
      know precisely why ... more analysis work needs to be done)
      but the additional requirement, that it possess an
      associated command, doesn't seem warranted.
      
      The included patch removes that requirement, and should
      enable eventual simplification of Miguel's [apply] patch by
      not absolutely requiring it to create a Command to associate
      with an anonymous proc.
      
      This simplification is beneficial with, or without, changes
      to tcl semantics permitting direct evaluation of a Lambda
      ObjType.
      
      
    2. login: "coldstore"
    3. mimetype: "text/plain"
    4. username: "coldstore"
  8. Ticket change [f230b6ae05] (rid 109496) by coldstore on 2004-08-23 06:41:16:

    1. icomment:
      
      
      File Added - 98730: procns.diff
      
      
      
    2. login: "coldstore"
    3. mimetype: "text/plain"
    4. username: "coldstore"
  9. Add attachment "procns.diff" [248daf29fb] (rid 131122) by coldstore on 2004-08-23 06:41:16.

  10. Ticket change [fe8dac2f1d] (rid 108610) by coldstore on 2004-08-23 08:09:30:

    1. icomment:
      Logged In: YES 
      user_id=19214
      
      Second patch to remove Command* from Proc.
      
      This handles [rename] and properly refcounts Namespace refs
      held in Procs.
      
      
    2. login: "coldstore"
    3. mimetype: "text/plain"
    4. username: "coldstore"
  11. Ticket change [7a9080c665] (rid 90346) by coldstore on 2004-08-23 08:09:31:

    1. icomment:
      
      
      File Added - 98735: procns2.patch
      
      
      
    2. login: "coldstore"
    3. mimetype: "text/plain"
    4. username: "coldstore"
  12. Add attachment "procns2.patch" [7317f0c6af] (rid 104985) by coldstore on 2004-08-23 08:09:31.

  13. Add attachment "apply3.patch" [ea2d45ca48] (rid 103325) by msofer on 2006-01-12 05:33:00.

  14. Ticket change [75edb6a645] (rid 105478) by msofer on 2006-01-12 05:33:00:

    1. icomment:
      
      
      File Added - 163010: apply3.patch
      
      Logged In: YES 
      user_id=148712
      
      Updated patch apply3.patch, applies to HEAD.
      
      Note that this is still a proof-of-concept: missing tests
      and comments, for instance.
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  15. Ticket change [0f2dac303d] (rid 94745) by msofer on 2006-01-12 05:47:32:

    1. icomment:
      Logged In: YES 
      user_id=148712
      
      Comments on coldstore's patches:
      
      (1) the idea is more than sound; we need to check if it
      doesn't break common extensions that include tclInt.h (itcl
      uses Proc, IIRC).
      
      (2) a Proc has to know its namespace in order to 
      (a) cause the body to be compiled in the correct namespace
      (b) push a CallFrame for the correct namespace before
      eval'ing the body
      
      
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  16. Ticket change [193ed8672f] (rid 122783) by msofer on 2006-01-19 05:46:11:

    1. icomment:
      Logged In: YES 
      user_id=148712
      
      Updated apply4.patch, with fixes for two bugs noticed by dgp
      on tclcore:
      * [info level 0] now returns the full command line
      * error messages do not refer to "procedures"
      
      Still missing:
      * TESTS!!
      * move ::apply to ::tcl::apply (?)
      * implement suggestion by jenglish (?): if the first
      argument to apply is a single-element list, interpret it as
      a command name instead
      
      Coldstore's suggestion (improved) will appear in a
      forthcoming patch that replaces 'struct Proc' with 'struct
      Lambda', and arranges for proc to create a command that runs
      a lambda (instead of apply running a nameless proc, as in
      this patch). This cleaner approach will break compat with
      (at least) itcl sources: investigating an approach that
      avoids that.
      
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  17. Add attachment "apply4.patch" [cc1878d353] (rid 95635) by msofer on 2006-01-19 05:46:13.

  18. Ticket change [fb5c3c4efb] (rid 92054) by msofer on 2006-01-19 05:46:16:

    1. icomment:
      
      
      File Added - 163955: apply4.patch
      
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  19. Ticket change [00d2abc65a] (rid 119378) by msofer on 2006-01-22 09:02:03:

    1. icomment:
      Logged In: YES 
      user_id=148712
      
      Patch apply4 was buggy-as-hell, sorry. The new apply5 should
      be much better. Added a testfile too.
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  20. Add attachment "apply5.patch" [a5e3acc43e] (rid 110448) by msofer on 2006-01-22 09:02:05.

  21. Ticket change [4e64def26d] (rid 127226) by msofer on 2006-01-22 09:02:07:

    1. icomment:
      
      
      File Added - 164357: apply5.patch
      
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  22. Add attachment "apply.test" [30dce24896] (rid 93328) by msofer on 2006-01-22 09:03:33.

  23. Ticket change [abc1e6c14e] (rid 101174) by msofer on 2006-01-22 09:03:34:

    1. icomment:
      
      
      File Added - 164358: apply.test
      
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  24. Ticket change [712c57c4e2] (rid 100626) by dgp on 2006-02-02 02:12:11:

    1. icomment:
      
      
      File Added - 165824: 944803.patch
      
      Logged In: YES 
      user_id=80530
      
      
      New patch includes all changes
      in one (including new files)
      
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  25. Add attachment "944803.patch" [b9b2f1feb3] (rid 129197) by dgp on 2006-02-02 02:12:11.

  26. Ticket change [a8062ea9db] (rid 98906) by dgp on 2006-02-02 02:26:51:

    1. assignee changed to: "dgp"
    2. closedate changed to: "2006-02-01T19:26:51"
    3. closer changed to: "dgp"
    4. icomment:
      Logged In: YES 
      user_id=80530
      
      944803.patch committed for Tcl 8.5a4
      
      
    5. login: "dgp"
    6. mimetype: "text/plain"
    7. resolution changed to: "Accepted"
    8. status changed to: "Closed"
    9. username: "dgp"