[plt-scheme] units

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Fri Oct 25 10:20:50 EDT 2002

At Fri, 25 Oct 2002 08:49:31 +0000, Tom Hirschowitz wrote:
> 1. Linking mode : in Unit_d, linking is by name directly - as with
> signed units, right?

Yes.

> 2. Initialization expressions. In Unit_d, unit body clauses
> are divided into definition and initialization clauses, and 
> during composition, the initialization clauses of all arguments
> are put in the end, after all definition clauses.
> This does not seem to be done (nor specified) in MzScheme, as showed by 
> the following code, which prints "#<undefined>#<undefined>".
> 
> Is that true, or am I lost?

Yes, there's a difference between the model and MzScheme.

In the model, units import and export values. In MzScheme, units import
and export locations, and a "definition" within a unit is executed to
mutate the defined variable's location.

Matthew



Posted on the users mailing list.