mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-14 15:40:19 +02:00
use common slots mechanism in ghil
* module/system/base/syntax.scm (define-type): Fix getter for common slot. * module/language/ghil.scm (<ghil>): Use the common slots mechanism.
This commit is contained in:
parent
43e0c29305
commit
2c65f2d5a7
2 changed files with 27 additions and 24 deletions
|
@ -50,7 +50,7 @@
|
|||
`(define (,(symbol-append (trim-brackets name)
|
||||
'- common-slot)
|
||||
x)
|
||||
(struct-ref x i)))
|
||||
(struct-ref x ,i)))
|
||||
common-slots (iota (length common-slots)))))))
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue