[plt-scheme] basic syntax problem
Tim Hanson wrote:
> I'm having unexpected syntax trouble in something that worked before, so i suspect i am breaking rules i'm not aware of.
>
> the following code:
> (require ( lib "url.ss" "net"))
>
> (define (f u)
> (string->url u))
>
> compiles once (and then runs), but not twice. the second attempt to "start"
> yields (cf. below):
> compile: bad syntax; reference to top-level identifier is not allowed, because no #%top syntax transformer is bound in: lifted
We ran into this error with a similar demo intended for lecture, and I
found it in the PLT bug database, marked as fixed. I bet it works in
3.99.0.23 (my example does). I don't know what the fix might be for 372.
--PR