[plt-scheme] Not able to use for or for/list in DrScheme
On Jul 26, Gregory Woodhouse wrote:
> 'm running Pretty Big in 4.02 and get the following
>
> Welcome to DrScheme, version 4.0.2 [3m].
> Language: Pretty Big (includes MrEd and Advanced Student); memory
> limit: 128 megabytes.
> > (for ([i '(1 2 3)]) (display i))
> . . reference to undefined identifier: for
`Pretty Big' is a legacy language -- it is based on the lagacy
`mzscheme' language, which doesn'y have `for'.
> By contrast, in mzscheme, I get
>
> ~:$ mzscheme
> Welcome to MzScheme v4.0.2 [3m], Copyright (c) 2004-2008 PLT Scheme Inc.
> > (for ([i '(1 2 3)]) (display i))
> 123>
>
> as expected.
>
> Is there another language setting I should be using?
Use the module language, and begin your definitions with
#lang scheme
--
((lambda (x) (x x)) (lambda (x) (x x))) Eli Barzilay:
http://www.barzilay.org/ Maze is Life!