Tk Library Source Code

View Ticket
Login
Ticket UUID: 772435
Title: snit: Initialization of type variables
Type: RFE Version: None
Submitter: andreas_kupries Created on: 2003-07-16 16:32:00
Subsystem: snit Assigned To: duquette
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2003-10-18 11:07:38
Resolution: Closed By: duquette
    Closed on: 2003-10-18 04:07:38
Description:
From a mail by Will, author of snit:

* I'd like to add a good way to initialize array 
typevariables.
User Comments: duquette added on 2003-10-18 11:07:38:
Logged In: YES 
user_id=372859

I've checked in a change that allows a type to have a 
"typeconstructor".  The typeconstructor's body is executed just 
after the type is defined; all type variables are visible in it.  Thus, 
it can be used to initialize array-valued type-variables and other 
resources belonging to the type as a whole.