[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#24955: defining a record type does not also define a GOOPS class in
From: |
Thompson, David |
Subject: |
bug#24955: defining a record type does not also define a GOOPS class in Guile 2.1 |
Date: |
Wed, 16 Nov 2016 10:26:05 -0500 |
Hello,
It used to be, in Guile 2.0, that defining a record type <foo> would
also, in an unhygienic manner, define the GOOPS class <<foo>> for use
with generic methods. However, in Guile 2.1, this does not happen.
Example:
(use-modules (srfi srfi-9)
(oop goops))
(define-record-type <foo>
(make-foo bar)
foo?
(bar foo-bar))
<<foo>> ;; Unbound variable: <<foo>>
Was this an intentional breaking change? I do find it weird that a
variable binding is magically defined, but I still would like some way
to access the class wrapper for a record type without doing something
hacky like:
(define <<foo>> (class-of (make-foo 'bar)))
Thanks,
- Dave
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bug#24955: defining a record type does not also define a GOOPS class in Guile 2.1,
Thompson, David <=