Re: [racket] confused beginner

2014-10-04 Thread Sean Kanaley
You can add this repository to get a more recent version *ppa:plt/racket* *https://launchpad.net/~plt/+archive/ubuntu/racket * On Sat, Oct 4, 2014 at 4:16 PM, Andrew Ulrich wrote: > That was the problem, thanks Robby! I guess ubuntu's apt rep

Re: [racket] confused beginner

2014-10-04 Thread Andrew Ulrich
That was the problem, thanks Robby! I guess ubuntu's apt repo's not up to date or something. Andrew On Sat, Oct 4, 2014 at 2:38 PM, Robby Findler wrote: > Are you sure you have a recent version of racket? I wonder if you're > looking at the docs for the latest release (on docs.racket-lang.org)

Re: [racket] confused beginner

2014-10-04 Thread Robby Findler
Are you sure you have a recent version of racket? I wonder if you're looking at the docs for the latest release (on docs.racket-lang.org) but you have an older release where you're trying things out. Note that you can look at your local docs and those docs should match up to your local installatio

Re: [racket] confused beginner

2014-10-04 Thread Andrew Ulrich
Ok, I'm stuck again: I'm trying to use place-image, but it keeps saying place-images: unbound identifier in module in: place-images It doesn't even seem to work with the example code in the docs found at: http://docs.racket-lang.org/teachpack/2htdpimage.html?q=overlay#%28def._%28%28lib._2htdp%2Fim

Re: [racket] confused beginner

2014-10-04 Thread Andrew Ulrich
Aha, great! Thanks guys! Andrew On Sat, Oct 4, 2014 at 8:54 AM, Jens Axel Søgaard wrote: > Hi Andrew, > > To add what Matthias say, if you need a "function version" of bitmap, > you can use bitmap/file instead. > > (require 2htdp/image) > (define path-stringy "images/some.png") > (b

Re: [racket] confused beginner

2014-10-04 Thread Jens Axel Søgaard
Hi Andrew, To add what Matthias say, if you need a "function version" of bitmap, you can use bitmap/file instead. (require 2htdp/image) (define path-stringy "images/some.png") (bitmap/file path-stringy) Note that I changed (path-stringy) to path-stringy. /Jens Axel 2014-10-04 15

Re: [racket] confused beginner

2014-10-04 Thread Matthias Felleisen
What you used is called a "computed string" that is, you expect bitmap to evaluate the argument path-stringy to a string. But, in BSL, bitmap expects to be handed a literal string constant (or a module path): - (require 2htdp