[racket] confused beginner

From: Andrew Ulrich (andrewsotheraccount at gmail.com)
Date: Sat Oct 4 09:36:38 EDT 2014

Hi, I've got a really simple problem, I think.  Why is it that when I try
to do the following:

(require 2htdp/image)
(define path-stringy "images/some.png")
(bitmap (path-stringy))

I get the following error:
 bitmap: expected the argument to specify a local path (via a string) or a
module path (e.g. `icons/b-run.png') in: (bitmap (path-stringy))

I mean, shouldn't path-stringy evaluate to a string before it's passed into
bitmap?  If not, then how do I use bitmap for anything dynamic?

Thanks,
Andrew
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20141004/034b39c7/attachment.html>

Posted on the users mailing list.