Re: [racket] Need a namespace

2010-06-24 Thread michael rice
That fixed it. Thanks, Michael --- On Thu, 6/24/10, Noel Welsh wrote: From: Noel Welsh Subject: Re: [racket] Need a namespace To: "michael rice" Cc: users@racket-lang.org Date: Thursday, June 24, 2010, 11:47 AM Nope, it works as documented. Trying changing the language then, fr

Re: [racket] Need a namespace

2010-06-24 Thread Noel Welsh
Nope, it works as documented. Trying changing the language then, from R5RS to Module. (But I don't see how you can get that error with the given program, so I suspect something else is going on.) HTH, N. On Thu, Jun 24, 2010 at 4:44 PM, michael rice wrote: > > Are my docs incorrect or out outdat

Re: [racket] Need a namespace

2010-06-24 Thread michael rice
y and install it for the call to eval:   #lang scheme     (define ns (make-base-namespace))   (eval '(cons 1 2) ns) ; works --- On Thu, 6/24/10, Noel Welsh wrote: From: Noel Welsh Subject: Re: [racket] Need a namespace To: "michael rice" Cc: users@racket-lang.org Date: Thursda

Re: [racket] Need a namespace

2010-06-24 Thread Noel Welsh
You're using a define in a place where you aren't allowed to put a define. E.g., this will work: (define foo 1) This won't work: (define bar (define foo 1) foo) N. _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/

Re: [racket] Need a namespace

2010-06-24 Thread michael rice
I'm getting this: define: not allowed in an expression context in: (define ns (make-base-namespace)) > Maybe it's my language setting, R5RS? Also, I'm using v 4.1.2 on Fedora 13. Michael --- On Thu, 6/24/10, Noel Welsh wrote: From: Noel Welsh Subject: Re: [racket] N

Re: [racket] Need a namespace

2010-06-24 Thread Noel Welsh
It works for me... N. On Thu, Jun 24, 2010 at 4:01 PM, michael rice wrote: > > How do I make an empty namespace in DrScheme? > > This doesn't seem to work: > > #lang scheme > > (define ns (make-base-namespace)) > > > Michael _ For list-related ad

[racket] Need a namespace

2010-06-24 Thread michael rice
How do I make an empty namespace in DrScheme? This doesn't seem to work: #lang scheme (define ns (make-base-namespace)) Michael _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users