[racket-dev] Pull request for make-base-eval

From: Stephen Chang (stchang at ccs.neu.edu)
Date: Wed Oct 2 01:54:19 EDT 2013

> namespace-attach-module: a different module with the same name is already in
> the destination namespace

I am running into this issue with make-base-eval again. Looking
through the email archive, it looks like it's come up several times
before but I couldn't figure out if there was a resolution.

For example, the code below works fine in drracket with the scribble
html button, but errors when compiled with scribble from the command
line.

#lang scribble/manual
@(require scribble/eval)
@(define the-eval (make-base-eval #:lang 'typed/racket))
@interaction[#:eval the-eval
(: my-sqr (Real -> Real))
(define (my-sqr x)
  (* x x))
(my-sqr 42)]

namespace-attach-module: a different module with the same name is
already in the destination namespace
  module name: "/home/stchang/pltpkg/racket/collects/racket/pretty.rkt"

Is the solution to just ditch make-base-eval and use make-evaluator instead?





>
> #lang scribble/manual
> @(require scribble/eval)
> @(define the-eval
>   (make-base-eval #:lang 'racket))
>
> @examples[#:eval the-eval (add1 7)]
>
> It's not at all clear to me how to resolve the problem.
>
>
> David
>
> _________________________
>  Racket Developers list:
>  http://lists.racket-lang.org/dev

Posted on the dev mailing list.