[gambit-list] blackhole question

Milos Negovanovic milos.negovanovic at gmail.com
Wed Jul 28 04:52:35 EDT 2010


Hi all,

I am new to scheme, gambit and blackhole! Have a look at the fallowing
example:


milosn at box gambit $ cat a.scm
(define (test)
  (println "A!"))
milosn at box gambit $ cat b.scm 
(define (test)
  (println "B!"))
milosn at box gambit $ cat mod.scm 
(import a
        b)
(test)
milosn at box gambit $ bsc -i mod.scm
Loaded Black Hole.
A!


My question is: why is it printing "A!" when test procedure was redefined in
b.scm and b.scm is imported after a.scm?

Regards
-- 
Milos Negovanovic
milos.negovanovic at gmail.com



More information about the Gambit-list mailing list