[plt-scheme] adapted quiz.ss from web-server, `( ... , (p ...)) in data file

From: Geoff Knauth (geoff at knauth.org)
Date: Mon Dec 3 10:48:38 EST 2007

No, Noel, I was the idiot, and you showed me exactly what I did wrong,  
besides not having a cup of coffee first.  Thank you!

Geoffrey

On Dec 3, 2007, at 07:55, Noel Welsh wrote:

> Maybe I'm being an idiot here, but why have you unquoted the p?
> Wouldn't it be valid without the unquote?
>
> N.
>
> On Dec 3, 2007 12:35 PM, Geoffrey S. Knauth <geoff at knauth.org> wrote:
>> I'm playing with the example quiz.ss in the web-server.  (Thank you  
>> Don
>> Felgar and Greg Pettyjohn!)
>> There's a line:
>> (define quiz (load *data-file*))that fails:
>> reference to undefined identifier: p
>> because, silly me, I tried to use this kind of syntax in the data  
>> file:
>> `("This was to be a practice quiz.  But I am a silly goose!"
>>  (
>>   (,(p "What is the value of " (code "(cons 'a empty)") "?")
>>   ... ) )What's the best way of doing this?  I'd like my quiz to  
>> have more
>> formatting options, including insertion of images.


Posted on the users mailing list.