[plt-scheme] classes, contracts, modules

From: Robby Findler (robby at cs.uchicago.edu)
Date: Tue Jul 27 20:02:13 EDT 2004

On Jul 27, 2004, at 5:17 PM, David A. Herman wrote:

>   For list-related administrative tasks:
>   http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>
> A few questions about the class library:
>
> - The grammar in 13.3 for contract-expr has "object-contract" in the 
> font
> of a non-terminal, but I believe that's supposed to be a keyword?

yes, thanks.

> - Chapter 13.3 claims to be about class and object contracts but has no
> information about class contracts. Is it possible to attach a contract 
> to
> a class?

not currently.

> - Is it possible to provide a class from a module without providing the
> ability to construct an instance of the class? Cf. abstract classes or
> classes with private/protected constructors in Java.

not that I know of.

Robby



Posted on the users mailing list.