> 
> Here’s a toy example. It generates an error, but hopefully conveys the idea 
> I’m trying to express. 
> 
> #lang racket
> 
> (require (for-syntax syntax/parse)
>         racket/stxparam
>         racket/stxparam-exptime)
> 
> (define-syntax-parameter mval 1)
> 
> (define-syntax (foo stx)
>  (syntax-parse stx
>    [(_ m:number n:number)
>     #'(syntax-parameterize ([mval m])
>         (bar n))]))
> 
> (define-syntax (bar stx)
>  (syntax-parse stx
>    [(_ n) #'(* (syntax-parameter-value mval) n)]))
> 
> (foo 3 5)

It dawned on me that since both computations take place at runtime I can simply 
use a parameter!

Kevin

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/AC61E773-7468-4A1E-916A-F8939EDA5EDC%40gmail.com.

Reply via email to