[plt-scheme] Problem with prop:custom-write

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Tue Nov 22 09:04:45 EST 2005

At Tue, 22 Nov 2005 11:26:34 +0100, Erich Rast wrote:
> Can anyone tell me what's wrong with the following code?
> [...]
>    (define internal-label-symbol (make-struct-field-accessor 
> struct:internal-label 0))
   ^^^^^^^^^^^^^^^^^^^

Use `internal-label-ref' here and in the second definition.

Or, try

 (require (lib "struct.ss"))
 (define-struct/properties internal-label (symbol index)
   ([prop:custom-write print-internal-label]))

> Execution enters an infinite display loop and makes DrScheme freeze.

This is puzzling, and we're still looking into it.

Matthew



Posted on the users mailing list.