> From: Andy Wingo
>
> It's ugly, but a quick solution:
Actually, I would not even take it as
a solution at all. The quesion was
how to do it in legal Scheme.
The problem is not the position of the
define, but that no Scheme report has
any procedure called |defined?|.
Scheme is intended to be
Hi
What happened to base64 library on Guile recent versions?
I have see that was on Guile 1.4 (ice-9 base64) [1]. Even the code
appears to be available [2].
Also I found an old guile project (codesystem base64) [3]
Anybody knows if it's going to be reincorporated into Guile libraries or
not?
[
Hi,
What's the easiest way to enter Guile(1.9.11) gds debugging mode in
Emacs(23.2)?
I have tried several ways but all failed:
1. follow Guile document "4.4.8 An Example GDS Session", Emacs didn't pop up
a stack buffer, but just print the result 24.
2. set break point by "C-x SPC"(from gds-tutori
Hi Yi,
On Tue 31 Aug 2010 21:10, Yi DAI writes:
> (let ((n 0)
> (c (call/cc (lambda (k) k
> (display n)
> (newline)
> (set! n (+ n 1))
> (c c))
>
> What I wanna do is try to print out the sequence of natural numbers
> using call/cc. On Guile, it works well. But other implement
On Wed 01 Sep 2010 01:26, Shenli Zhu writes:
> Hi all, I tried to install guile-1.9.11, and it seems freeze, see
> below. I wait for 5 mins and it still compiling and compiling. Any
> suggestion?
Unfortunately, the answer is to wait: this part of compilation takes a
long time. We hope to speed i
On Wed 01 Sep 2010 07:35, "Eric J. Van der Velden"
writes:
> Can something like this be done with letrec ?
Only via something like the Y combinator.
http://www.dreamsongs.com/NewFiles/WhyOfY.pdf
Andy
--
http://wingolog.org/
Hi,
It's ugly, but a quick solution:
On Wed 01 Sep 2010 00:12, Cedric Cellier writes:
> I'm doing this :
>
> (if (not defined? 'foo) (define foo bar))
>
> without realizing it's not legal scheme.
> What would be the idiomatic way to write this ?
(define foo
(if (defined? 'foo)
foo
Hello,
I understand that let can be made with a lambda, for example
(let((r 5))
(display r)
)
((lambda(r)
(display r)
)5)
Can something like this be done with letrec ?
Thanks,
Eric J.
Hi,
Shenli Zhu writes:
> I tried to install guile-1.9.11, and it seems freeze, see below. I wait for
> 5 mins and it still compiling and compiling. Any suggestion?
>
> --- make --
> GUILE_AUTO_COMPILE=0\
> ../meta/uninstalled-env\
>
Hi all,
I tried to install guile-1.9.11, and it seems freeze, see below. I wait for
5 mins and it still compiling and compiling. Any suggestion?
--- make --
GUILE_AUTO_COMPILE=0\
../meta/uninstalled-env\
guile-tools compile -Wunbound-
-[ Fri, Aug 27, 2010 at 04:04:25PM +0200, Andreas Rottmann ]
> > guile> (use-syntax (ice-9 syncase))
> > guile> (if #t (define foo "bar"))
> > ERROR: invalid context for definition of foo
> > (...)
> >
> I think it's establishing stricter rules for `define' placement. Note
> that your code is
11 matches
Mail list logo