[plt-scheme] basic syntax problem

From: Prabhakar Ragde (plragde at uwaterloo.ca)
Date: Tue May 6 08:10:01 EDT 2008

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 (my example does). I don't know what the fix might be for 372. 

Posted on the users mailing list.