Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2008-05-08
22:28 • Closed ticket [1842600fff]: Additional public API's for tclOO plus 7 oth... artifact: 27b9a3d268 user: dkf
2008-01-07
00:31 • Ticket [1842600fff]: 4 changes artifact: 25de57d22e user: wiede
2008-01-06
06:05 • Ticket [1842600fff]: 4 changes artifact: 0cdedfe70d user: dkf
2008-01-03
22:14 • Ticket [1842600fff]: 4 changes artifact: f727f64926 user: dkf
2007-12-30
22:37 • Ticket [1842600fff]: 1 change artifact: dbfa644917 user: dkf
2007-12-12
22:26 • Ticket [1842600fff]: 4 changes artifact: 4b91775510 user: wiede
2007-12-02
17:32 • Ticket [1842600fff]: 4 changes artifact: 58da34ad7d user: wiede
17:32 • Add attachment itclNeededFromTclOO.h to ticket [1842600fffffffff|184260... artifact: 245507bd08 user: wiede
17:31 • Ticket [1842600fff] Additional public API's for tclOO status still Open ... artifact: a40dc75f27 user: wiede
17:31 • Add attachment itclNeededFromTclOO.c to ticket [1842600fffffffff|184260... artifact: 1d0f8fe4d8 user: wiede
10:31 • New ticket [1842600fff] Additional public API's for tclOO. artifact: aa2356a67a user: wiede

Additional public API's for tclOO

Closed / Fixed1842600fffffffffffffffffffffffffffffffffCreated 19 years agoUpdated 19 years ago
Descriptionplain2007-12-02 10:31:06
These are some additional public API's which would allow (at least for itcl-ng) to not need tclOOInt.h in the code.

see attached files (Include part and code part).
wiedeplain2007-12-02 17:31:08
File Added - 256947: itclNeededFromTclOO.c
wiedeplain2007-12-02 17:32:08
File Added - 256948: itclNeededFromTclOO.h

Logged In: YES 
user_id=558925
Originator: YES

File Added: itclNeededFromTclOO.h
wiedeplain2007-12-12 22:26:56
Logged In: YES 
user_id=558925
Originator: YES

In the meantime I have figured out, that it would be enough to have the following functions of TclOO in the internal stubs table:
TclOOAddToMixinSubs
TclOORemoveFromMixinSubs
TclOONewForwardMethod
TclOONewForwardClassMethod
and (see RFE 1842588)
Tcl_ObjectSetMapMethodNameProc (or maybe better naming: TclOOObjectSetMapMethodNameProc)
dkf Ticket [1842600fff]: 1 change [History diff]2007-12-30 22:37:12
dkfplain2008-01-03 22:14:25
Logged In: YES 
user_id=79902
Originator: NO

I'm not sure that those two mixin-related functions are the right ones to expose. They're a bit low-level, and are just there to make managing the data structures easy.

Other functions are all now exposed either publicly or through the private stubs table.
dkfplain2008-01-06 06:05:57
Logged In: YES 
user_id=79902
Originator: NO

Everything done except the mixin management; that's a lot more complex because being a mixin requires a correct relationship back the other way. And the appropriate epoch also has to be incremented to flush all relevant caches too. It's currently easier to use Tcl_EvalObjv to invoke 'oo::define mixin' with the right arguments...
wiedeplain2008-01-07 00:31:14
Logged In: YES 
user_id=558925
Originator: YES

I am now using all the new interfaces you are providing. Thanks for providing them. I am now also using the mixin management as you suggested.
dkfplain2008-05-08 22:28:31
Logged In: YES 
user_id=79902
Originator: NO

I've now got TclOOObjectSetMixins and TclOOClassSetMixins in the internal stub table. While I'm not yet sure that the API is perfect (hence they're not public) they're probably good enough if you're already using tclOOInt.h.
Log in (anonymous is fine) to add a comment.

Attachments: