[previous] [up] [next]     [contents] [index]
Next: Library Functions Up: MzScheme Architecture Previous: Library Functions

Parameterizations

Parameterization information is stored in a Scheme_Config record. For the currently executing thread, scheme_config is the current parameterization. For any thread, the thread's Scheme_Process record's config field stores the parameterization pointer.

Parameter values for built-in parameters are obtained and modified using scheme_get_param and scheme_set_param. Each parameter is stored as a Scheme_Object * value, and the built-in parameters are accessed through the following indices:

When installing a new parameter with scheme_set_param, no checking is performed on the supplied value to ensure that it is a legal value for the parameter; this is the responsibility of the caller of scheme_set_param. Note that Boolean parameters should only be set to the values #t and #f.

New primitive parameter indices are created with scheme_new_param and implemented with scheme_make_parameter and scheme_param_config.




[previous] [up] [next]     [contents] [index]
Next: Library Functions Up: MzScheme Architecture Previous: Library Functions

PLT