[plt-scheme] adapted quiz.ss from web-server, `( ... , (p ...)) in data file
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.