unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* Inconsistency with expressions between definitions
@ 2023-09-24  7:09 Dr. Arne Babenhauserheide
  2023-09-24 11:58 ` Linus Björnstam
  0 siblings, 1 reply; 5+ messages in thread
From: Dr. Arne Babenhauserheide @ 2023-09-24  7:09 UTC (permalink / raw)
  To: guile-devel

[-- Attachment #1: Type: text/plain, Size: 660 bytes --]

Hi,

while writing a comment to SRFI-245 I think I found an inconsistency in
the Implementation in Guile.

This works:

(define (using-later-variable)
  (define x y)
  (define y #t)
  x)
(using-later-variable)
;; => #t

This still works:

(define (using-later-variable)
  (define x y)
  (newline)
  (define y #t)
  x)
(using-later-variable)
;; => (newline output)
;; => #t

This fails:

(define (using-later-variable)
  (define x y)
  (display x)
  (newline)
  (define y #t)
  x)
(using-later-variable)
;; => #<unspecified>

Best wishes,
Arne
-- 
Unpolitisch sein
heißt politisch sein,
ohne es zu merken.
draketo.de

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 1125 bytes --]

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

end of thread, other threads:[~2023-09-25 13:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-24  7:09 Inconsistency with expressions between definitions Dr. Arne Babenhauserheide
2023-09-24 11:58 ` Linus Björnstam
2023-09-24 16:02   ` Dr. Arne Babenhauserheide
2023-09-25 12:48     ` Linus Björnstam
2023-09-25 13:53       ` Dr. Arne Babenhauserheide

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).