[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Inconsistency with expressions between definitions
From: |
Dr. Arne Babenhauserheide |
Subject: |
Inconsistency with expressions between definitions |
Date: |
Sun, 24 Sep 2023 09:09:39 +0200 |
User-agent: |
mu4e 1.10.7; emacs 29.0.92 |
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
signature.asc
Description: PGP signature
- Inconsistency with expressions between definitions,
Dr. Arne Babenhauserheide <=