-
Notifications
You must be signed in to change notification settings - Fork 0
Order of definitions in REPL #20
Comments
You can always just start the REPL and call (load "test.scm") (or (include "test.scm")). Launchpad Details: #LPC leppie - 2008-05-14 13:48:35 -0400 |
I noticed this yesterday and was going to report it, but you raced me to it. Thanks. Launchpad Details: #LPC Abdulaziz Ghuloum - 2008-05-14 21:46:59 -0400 |
How exactly does it work? It starts the REPL and then do a load/include on the filename(s) passed as parameters? How do you pass additional parameters/files? Launchpad Details: #LPC leppie - 2008-05-15 09:37:08 -0400 |
Fixed in 1478. Let me know if that messed up something else. Launchpad Details: #LPC Abdulaziz Ghuloum - 2008-05-15 09:41:49 -0400 |
On May 15, 2008, at 6:37 AM, leppie wrote:
When you start "ikarus file1 file2 file3 ...", the contents of the Launchpad Details: #LPC Abdulaziz Ghuloum - 2008-05-15 09:49:47 -0400 |
Thanks :) So it is effectively: ikarus
? Launchpad Details: #LPC leppie - 2008-05-15 10:33:41 -0400 |
Definitions that call functions defined later in the file don't seem to be handled as I would expect when loaded at the REPL. When run as a script, they work as I expect. For example:
jnear@sandstone r6mk $ cat test.scm
!/usr/bin/env scheme-script
(import (rnrs))
(define foo
(lambda ()
(bar)))
(define bar
(lambda ()
(display "bar!")
(newline)))
(foo)
jnear@sandstone r6mk $ ikarus --r6rs-script test.scm
bar!
jnear@sandstone r6mk $ ikarus test.scm
Ikarus Scheme version 0.0.3+ (revision 1477, build 2008-05-13)
Copyright (c) 2006-2008 Abdulaziz Ghuloum
Unhandled exception:
Condition components:
Launchpad Details: #LP230395 Joe Near - 2008-05-14 13:29:27 -0400
The text was updated successfully, but these errors were encountered: