[plt-scheme] Struct Printer

From: Ed Cavazos (proteus at theworld.com)
Date: Thu Jun 19 12:25:30 EDT 2003

Matthew Flatt <mflatt at cs.utah.edu> writes:

> You'll have to use `make-struct-type' directly (instead of
> `define-struct') to attach a property to the type, but you can write
> your own macro, and `(lib "struct.ss" "syntax")' may help if you want a
> macro that looks like `define-struct'.

Thanks! I didn't know about struct.ss...

> It would make sense for the built-in printer to consult a standard
> property. I still haven't done that because I've never solved to my
> satisfaction the problems with cyclic structures.

Eh, so what are the problems?

Ed



Posted on the users mailing list.