bug-guile
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#38611: Guile 2.9.7 regression: "duplicate" record field names


From: Andy Wingo
Subject: bug#38611: Guile 2.9.7 regression: "duplicate" record field names
Date: Sun, 12 Jan 2020 21:56:55 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)

On Sat 14 Dec 2019 14:31, Göran Weinholt <address@hidden> writes:

> The following program works in Guile 2.2.6 (and other R6RS
> implementations), but raises an exception in Guile 2.9.7. A field called
> "name" exists in record type a and record type b, but there is no actual
> naming conflict as I understand it.
>
> (import (rnrs))
>
> (define-record-type a
>   (fields name))
>
> (define-record-type b
>   (parent a)
>   (fields name))
>
> (let ((x (make-b 'a 'b)))
>   (write (list (a-name x)
>                (b-name x)))
>   (newline))

Fixed in master.  Thanks for the report!

Andy





reply via email to

[Prev in Thread] Current Thread [Next in Thread]