geiser-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Geiser-users] Fwd: reloading a module


From: Irvin
Subject: [Geiser-users] Fwd: reloading a module
Date: Fri, 25 May 2012 09:16:22 -0700

HI Jao,
This is directly from the repl so perhaps that's the problem? e.g.

-----
inside agent.scm
(define memory '())
-----
Welcome to Racket v5.1.1.
racket@> (require "agent.scm")
racket@> memory
'()
[now I change memory to be '(1) in the file agent.scm i.e. (define memory '(1)) then save the file"]
racket@> (require "agent.scm")
racket@> memory
'()
racket@>

Thanks for your help.

---------- Forwarded message ----------
From: Jose A. Ortega Ruiz <address@hidden>
Date: Thu, May 24, 2012 at 9:13 AM
Subject: Re: [Geiser-users] reloading a module
To: Irvin <address@hidden>
Cc: address@hidden



Hi Irvin,

On Thu, May 24 2012, Irvin wrote:

> Hi, I noticed if you evaluate a require _expression_ e.g. using C-x C-e
> on (require "file.scm") then make changes to "file.scm" and evaluate
> it again the changes aren't reflected in the REPL (I'm using Racket).

Is the REPL's current module that of the file where the require form
was?  Or are you evaluating the require directly in the REPL?

This should work out of the box (provided all files involved are
modules, i.e., have a #lang line), and apparently does for me, but
perhaps we're doing different things...

jao
--
One reason that life is complex is that it has a real part and an
imaginary part.
 -Andrew Koenig


reply via email to

[Prev in Thread] Current Thread [Next in Thread]