maybe a stupid question but ... (repl and load "XXX")
Created by: kinsho6i7h
OK, I'm new to geiser, very new so please excuse me if this is an emacs thing, or a guile thing...
I am reading 'The Little Schemer'
So, I have these 2 files, chapter02.scm and common.scm
atom? is defined in common.scm.
In chapter02.scm, there is a (load "common.scm")
If I open a terminal and start guile, then (load "chapter02.scm"), I get that file, PLUS the loaded definition from 'common.scm'.
In a geiser REPL using guile it's doing something else...
,help' for help. scheme@(guile-user)> (define hello 'hello) scheme@(guile-user)> (atom? hello) ;;; <stdin>:53:0: warning: possibly unbound variableatom?'
:53:0: In procedure module-lookup: Unbound variable: atom?
Entering a new prompt. Type
,bt' for a backtrace or,q' to continue.
scheme@(guile-user) > (load "common.scm")
scheme@(guile-user) > (atom? hello)
$2 = #t
The original file is loaded and sent to the repl yet the nested 'common.scm' is not. However, I can then simply load it manually?, define something to test and voila...
So is this normal, common, me or something else as it seems strange. Thanks