[plt-scheme] define-struct-for-syntax?

From: Kimberley Burchett (kim.burchett at gmail.com)
Date: Sat Jul 15 12:37:04 EDT 2006

Is there any way to define a struct in the transformer environment
other than putting it in a separate module and then
require-for-syntax'ing that module?  I tried wrapping the
define-struct in a begin-for-syntax, but got an error saying "syntax
definitions not allowed within begin-for-syntax".

The separate module hack works, obviously, but it makes me sad.

Kimberley Burchett

Posted on the users mailing list.