unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* begin oddities
@ 2008-09-24 13:32 Bill Schottstaedt
  2008-09-24 23:54 ` Marijn Schouten (hkBst)
  0 siblings, 1 reply; 9+ messages in thread
From: Bill Schottstaedt @ 2008-09-24 13:32 UTC (permalink / raw)
  To: bug-guile

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)






^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2008-09-25 23:12 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-24 13:32 begin oddities Bill Schottstaedt
2008-09-24 23:54 ` Marijn Schouten (hkBst)
2008-09-25 21:30   ` Neil Jerram
2008-09-25 22:14     ` Bill Schottstaedt
2008-09-25 22:16     ` Bill Schottstaedt
2008-09-25 22:24       ` Neil Jerram
2008-09-25 22:40         ` Bill Schottstaedt
2008-09-25 22:56         ` Bill Schottstaedt
2008-09-25 23:12         ` Bill Schottstaedt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).