Tk Library Source Code

View Ticket
Login
Ticket UUID: 844766
Title: need ability to split class defs across files
Type: RFE Version: None
Submitter: hobbs Created on: 2003-11-18 23:14:44
Subsystem: snit Assigned To: duquette
Priority: 6 Severity:
Status: Closed Last Modified: 2004-02-08 08:00:36
Resolution: Closed By: duquette
    Closed on: 2004-02-08 01:00:36
Description:
snit does not currently allow one to create classes that 
spread across multiple files.  It would be very useful to 
have commands that enable one to modify (type)
method bodies after creation without knowing snit 
internals.  Itcl does allow this.
User Comments: duquette added on 2004-02-08 08:00:36:
Logged In: YES 
user_id=372859

Snit 0.93 has two new commands, snit::typemethod and snit::
method, that allow typemethods and instance methods to be 
defined (or redefined) for a previously existing snit::type, snit::
widget, or snit::widgetadaptor.  These commands can be used in 
the same source file as the snit::type command, or anywhere 
else; a snit::type object can even use them to dynamically add 
new methods to itself.