[plt-scheme] how to debug expansions to top-level forms?

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Thu Jun 26 11:44:07 EDT 2003

At Thu, 26 Jun 2003 10:39:23 -0400, "Felix Klock's PLT scheme proxy" wrote:
>  > (expand (bind-to-vals (values 1 2 3) x y z))
> define-values: illegal use (not at top-level) in: (define-values (x y 
> z) (values 1 2 3))

`expand' is a function, nor a syntactic form, and it takes an
S-expression or syntax object.

I think you meant

 (syntax-object->datum (expand #'(bind-to-vals (values 1 2 3) x y z)))
-------------------------------^^

Matthew



Posted on the users mailing list.