Artifacts Associated With Ticket 1723738fffffffff
Ticket change [6a67e873c7] (rid 128143) by eriklns on 2007-05-22 19:51:24:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
This is a plea for making the function TclTransferResult() in tclResult.c part of the public interface. The feature is useful in cases where results need to be exchanged between interpreters, that cannot make a sensible use of the command alias mechanism to take care of the transfer of the interpreter result and/or error info. (The alias mechanism is limited to object commands only, and does not cover other arbitrary cases that affect the interpreter result or error info.) To implement the feature request, I foresee the following effort: - renaming to Tcl_TranferResult(). In the current situation, the function is not declared static already. - add it to the stubs table. - write documentation (to be added to the manual page for Tcl_CreateInterp or Tcl_SaveResult ?). - ... If this feature request is honoured, I am prepared to write (a draft version for) the documentation. Erik Leunissen
- foundin initialized to: "None"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "eriklns"
- subsystem initialized to: "None"
- title initialized to: "make TclTransferResult() public"
- type initialized to: "Patch"
Ticket change [396ab97d88] (rid 112387) by dgp on 2007-05-23 03:41:24:
- icomment:
Logged In: YES user_id=80530 Originator: NO While this is considered, I'd make a note that the implementation of TclTransferResult is made up entirely[*] of calls to Tcl's public interface, so an extension already has all the pieces needed to reproduce TclTransferResult for itself. [*] other than some optimization hackery.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [7cf7ac86f0] (rid 97168) by dkf on 2007-08-19 06:40:43:
- assignee changed to: "msofer"
- priority changed to: "2"
- subsystem changed to: ""
Ticket change [d885f52185] (rid 107456) by msofer on 2007-08-20 05:35:16:
- icomment:
Logged In: YES user_id=148712 Originator: NO I do not see any problem myself; does such an api addition require a TIP? Erik: please go ahead and submit the docs. I am sending a request for comments to tclcore: if there are no opinions against, we'll do it. Otherwise, it can go into the internal stubs.
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment:
Add attachment "Tcl_TransferResult.TIP" [206eb37b29] (rid 91307) by eriklns on 2007-08-29 02:26:33.
Ticket change [74c7a70d2c] (rid 105274) by eriklns on 2007-08-29 02:26:33:
- icomment:
File Added - 243234: Tcl_TransferResult.TIP
- login: "eriklns"
- mimetype: "text/plain"
- username: "eriklns"
- icomment:
Ticket change [d46fd0e41d] (rid 123441) by eriklns on 2007-08-29 02:26:34:
- icomment:
Logged In: YES user_id=113903 Originator: YES Hereby, I submit the TIP (file Tcl_TransferResult.TIP) and corresponding draft documentation (file Tcl_TransferResult.doc). File Added: Tcl_TransferResult.TIP
- login: "eriklns"
- mimetype: "text/plain"
- username: "eriklns"
- icomment:
Ticket change [0c97ef7cc7] (rid 114205) by eriklns on 2007-08-29 02:27:34:
- icomment:
File Added - 243235: Tcl_TransferResult.doc Logged In: YES user_id=113903 Originator: YES File Added: Tcl_TransferResult.doc
- login: "eriklns"
- mimetype: "text/plain"
- username: "eriklns"
- icomment:
Add attachment "Tcl_TransferResult.doc" [de2c94376a] (rid 114800) by eriklns on 2007-08-29 02:27:34.
Ticket change [cb5cb2ad61] (rid 95499) by dkf on 2007-08-31 21:14:12:
- icomment:
data_type - 310894 Logged In: YES user_id=79902 Originator: NO TIP now created. See http://tip.tcl.tk/307.html
- login: "dkf"
- mimetype: "text/plain"
- subsystem changed to: "45. Parsing and Eval"
- username: "dkf"
- icomment:
Ticket change [a807f7ffca] (rid 98907) by dkf on 2007-08-31 21:14:45:
- foundin changed to: "TIP Implementation"
- priority changed to: "5 Medium"
Ticket change [30db049fe2] (rid 93327) by mistachkin on 2007-12-13 13:55:52:
- icomment:
Logged In: YES user_id=113501 Originator: NO One thing that I noticed is that TclTransferResult implicitly assumes that _both_ interps are on the same thread. Maybe this should be mentioned in the docs if this API is made public?
- login: "mistachkin"
- mimetype: "text/plain"
- username: "mistachkin"
- icomment:
Ticket change [01af3b36fe] (rid 119525) by eriklns on 2007-12-14 03:26:13:
- icomment:
Logged In: YES user_id=113903 Originator: YES About thread awareness (which Joe Mistachkin mentions): that is something that I didn't reckon with as I proposed this feature request. If it is an issue here, I immediately accept that as being true. There is just little I have to offer with respect to documentation, because thread-awareness is something that I have very little overview over and insight into. I do not judge myself capable of writing sensible documentation related to that aspect. Someone else would have to take over ...
- login: "eriklns"
- mimetype: "text/plain"
- username: "eriklns"
- icomment:
Ticket change [c03e52a012] (rid 102373) by msofer on 2008-07-30 06:58:34:
- assignee changed to: "mistachkin"
Ticket change [1d32f19c31] (rid 90762) by dgp on 2008-12-03 04:47:02:
- icomment:
The thread restrictions are worth mentioning in the docs, though they are nothing new. It's part of Tcl's apartment model that you should only pass a (Tcl_Interp *) value to a Tcl_* routine from the same thread where that (Tcl_Interp *) value was originally returned by Tcl_CreateInterp(). Since the Tcl_TransferResult() routine takes two (Tcl_Interp *) arguments, the usual rule implies that both interps live in the same thread.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [1536e0c5fb] (rid 124531) by dgp on 2008-12-05 01:05:45:
- icomment:
I do appreciate the effort for contributing the documentation, but I'm going to rewrite it. I don't want to offend, but the contributed docs are written from a Tcl 8.4 perspective, and omit considerations of the return options dictionary. Even so, rewriting something is easier than the terror of the blank page. I plan to document Tcl_TransferResult() on the SetResult.3 page.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [e4f3957c4f] (rid 88042) by dgp on 2008-12-05 01:26:02:
- icomment:
Oops! typo. Will document on the SaveResult.3 page.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [7bce3c1f41] (rid 96968) by dgp on 2008-12-05 22:21:00:
- assignee changed to: "dkf"
- icomment:
um, ok, while I pondered, dkf went and did it.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
Ticket change [901b7b7092] (rid 120390) by dkf on 2008-12-05 22:21:52:
- assignee changed to: "mistachkin"
- closedate changed to: "2008-12-05T15:21:52"
- closer changed to: "dkf"
- resolution changed to: "Fixed"
- status changed to: "Closed"
Ticket change [b424c6ee5f] (rid 124977) by dkf on 2008-12-05 22:36:55:
- assignee changed to: "dkf"