[plt-scheme] Problem exporting constructor primitives for HtDP beginner student

From: Nadeem Abdul Hamid (nadeem at acm.org)
Date: Sun May 10 23:27:49 EDT 2009

In "test-pack.ss" I have:

  (module test-pack scheme
   (require lang/prim)
   (provide make-book book? book-title book-author book-year)
   (define-struct book (title author year))

It compiles/runs fine (language: Module).

Then, I make a new file "test-pack-play.ss", language Beginning  
Student, add the "test-pack" teachpack. The contents of this file are:

(make-book "Felleisen" "HtDP" 2001)
(check-expect (make-book "Felleisen" "HtDP" 2001) (make-book  
"Felleisen" "HtDP" 2001))

Running it gives:

Welcome to DrScheme, version 4.1.5 [3m].
Language: Beginning Student custom; memory limit: 128 megabytes.
Teachpack: test-pack.ss.
(make-book ...)

The field values of the structure are not displayed as expected, and  
the test fails.


--- nadeem

Posted on the users mailing list.