Artifacts Associated With Ticket 450545ffffffffffffffffffffffffffffffffff
Ticket change [4016be8f52] (rid 121565) by stevenashe on 2001-08-13 17:31:34:
- assignee initialized to: "msofer"
- cmimetype initialized to: "text/plain"
- comment initialized to:
Tcl_ObjType(3) states that writers of new object types need to call tcl_RegisterObjType. tk, for one, does not do this with any of the ObjTypes it manipulates. It certainly is not self-evident that extensions can maintain private Object types unknown to the tcl core. If maintaining private Object types is considered legal, then the Tcl_Obj(3) man page should state this. For example, tcl might decide to verify that typePtr in the Tcl_Obj structure is something valid, possibly by checking against the registered types. This would break tk.
- foundin initialized to: "obsolete: 8.4a1"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "stevenashe"
- subsystem initialized to: "10. Objects"
- title initialized to: "unregistered ObjType's okay"
- type initialized to: "Bug"
Ticket change [0a2f987521] (rid 113771) by dgp on 2001-08-14 04:30:48:
- icomment:
Logged In: YES user_id=80530 I agree with this report that Tk ought to register its Tcl_ObjType's with appropriate calls to Tcl_RegisterObjType. This would allow things like Tcl_ConvertToType to work with the Tk types. From that perspective, this is a Tk bug.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [b1d065853e] (rid 98224) by dkf on 2001-08-14 17:00:08:
- icomment:
Logged In: YES user_id=79902 Here's a patch to fix Tk by registering all its object types
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
- icomment:
Ticket change [a03897c36a] (rid 96764) by dkf on 2001-08-14 17:00:09:
- icomment:
File Added - 9520: tkobj.patch
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
- icomment:
Ticket change [c58fb12ed1] (rid 112019) by msofer on 2001-08-14 18:52:06:
- assignee changed to: "hobbs"
- icomment:
Logged In: YES user_id=148712 Comments and patch clearly mark this as a Tk bug. Jeff, I'm passing the ball to you :)
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
Ticket change [f2202de8d5] (rid 109487) by dgp on 2001-08-15 02:28:50:
- icomment:
Logged In: YES user_id=80530 The Tcl_ObjType's that are no longer static after this patch is applied -- shouldn't they be renamed to have a "tk" prefix?
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [27c5f64475] (rid 88578) by dkf on 2001-08-15 16:24:45:
- icomment:
Logged In: YES user_id=79902 That's a much larger change, and Tk wasn't exactly clean in that respect either. Still, here's a revised version (which is also unfortunately a much larger patch...)
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
- icomment:
Add attachment "tkobj.patch" [49e0bc1813] (rid 100114) by dkf on 2001-08-15 16:24:45.
Ticket change [4408a63af4] (rid 116651) by dkf on 2001-08-15 16:24:46:
- icomment:
File Added - 9564: tkobj.patch
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
- icomment:
Ticket change [ba23db59e4] (rid 129270) by dkf on 2001-08-15 16:25:15:
- icomment:
File Deleted - 9520:
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
- icomment:
Ticket change [a4c0bcf3b3] (rid 110258) by dgp on 2001-08-15 22:03:54:
- icomment:
Logged In: YES user_id=80530 Much better. One more question: should the new internal function TkRegisterObjTypes() go into the internal stub table ? How does one decide whether a new non-static internal function goes in the internal stub table or not?
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [cffa7910bb] (rid 113085) by dkf on 2001-08-15 22:35:21:
- icomment:
Logged In: YES user_id=79902 I don't think its useful to put TkRegisterObjTypes() in the stub table; it only really needs calling when Tk is first loaded (currently it is called immediately after stub table initialisation IIRC, which should be good enough.) Calling it again will just keep the reinit the types to the same value, which ought to be harmless enough...
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
- icomment:
Ticket change [1efde7cd76] (rid 91072) by dgp on 2001-08-15 22:39:42:
- icomment:
Logged In: YES user_id=80530 So membership in the internal stub table is just a judgment call, then? In that case, I agree it's not helpful to put it in. The patch looks good. I've applied it and no new test failures result. If you're looking for approval for commit, you've got it from me.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [7649732e34] (rid 105562) by dkf on 2001-08-15 22:45:25:
- icomment:
Logged In: YES user_id=79902 Checked in. I'll let Jeff figure out whether to close this bug... :^)
- login: "dkf"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- username: "dkf"
- icomment:
Ticket change [de2c3f28c5] (rid 114799) by hobbs on 2001-08-21 03:14:40:
- closedate changed to: "2001-08-20T20:14:40"
- closer changed to: "hobbs"
- icomment:
Logged In: YES user_id=72656 I'm going to leave it as-is, because while it is not "necessary", I think it is the good citizenship thing to do. I don't see the problem in making people (suggesting that they) register when it isn't strictly necessary in the code.
- login: "hobbs"
- mimetype: "text/plain"
- status changed to: "Closed"
- username: "hobbs"