[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
begin oddities
From: |
Bill Schottstaedt |
Subject: |
begin oddities |
Date: |
Wed, 24 Sep 2008 06:32:08 -0700 |
Is this a bug?
guile> (begin (define x 0) (+ x 1))
1
guile> (lambda () (begin (define x 0) (+ x 1)))
#<procedure #f ()>
guile> (let ((f (lambda () (begin (define x 0) (+ x 1))))) (f))
Backtrace:
In standard input:
3: 0* (let* ((f (lambda () #))) (f))
3: 1 [#<procedure #f ()>]
standard input:3:53: In procedure memoization in expression (f):
standard input:3:53: In file "standard input", line 2: Mixed definitions and
expressio
ns in (begin (define x 0) (+ x 1)).
ABORT: (syntax-error)
Also,
guile> (let () (begin . 1))
Segmentation fault (core dumped)
- begin oddities,
Bill Schottstaedt <=
- Re: begin oddities, Marijn Schouten (hkBst), 2008/09/24
- Re: begin oddities, Neil Jerram, 2008/09/25
- Re: begin oddities, Bill Schottstaedt, 2008/09/25
- Re: begin oddities, Bill Schottstaedt, 2008/09/25
- Re: begin oddities, Neil Jerram, 2008/09/25
- Re: begin oddities, Bill Schottstaedt, 2008/09/25
- Re: begin oddities, Bill Schottstaedt, 2008/09/25
- Re: begin oddities, Bill Schottstaedt, 2008/09/25