* bug#25211: GOOPS #:class alocation broken in Guile 2.2
@ 2016-12-15 19:39 Christopher Allan Webber
2017-03-01 14:38 ` Andy Wingo
0 siblings, 1 reply; 2+ messages in thread
From: Christopher Allan Webber @ 2016-12-15 19:39 UTC (permalink / raw)
To: 25211
In Guile 2.2:
(define-class <foo> ()
(bar #:allocation #:class
#:init-value 'baz))
(slot-definition-allocation (class-slot-definition <foo> 'bar))
=> #:instance
In Guile 2.0 this properly returns #:class.
Also, curiously, Guile 2.2 breaks if you present the keywords in the
wrong order:
(define-class <foo> ()
(bar #:allocation #:class
#:init-value 'baz))
oop/goops.scm:352:0: In procedure class-precedence-list:
oop/goops.scm:352:0: In procedure struct_vtable: Wrong type argument in position 1 (expecting struct): #:init-value
Entering a new prompt. Type `,bt' for a backtrace or `,q' to continue.
scheme@(#{8sync}# systems actors) [1]> ,bt
In current input:
1205:0 4 (_)
In oop/goops.scm:
2978:4 3 (_ _ . _)
811:17 2 (%prep-layout! #<<class> <foo> 30b1b40>)
767:19 1 (%compute-layout _ 0 #f)
352:0 0 (class-precedence-list _)
I'm guessing that's related!
^ permalink raw reply [flat|nested] 2+ messages in thread
* bug#25211: GOOPS #:class alocation broken in Guile 2.2
2016-12-15 19:39 bug#25211: GOOPS #:class alocation broken in Guile 2.2 Christopher Allan Webber
@ 2017-03-01 14:38 ` Andy Wingo
0 siblings, 0 replies; 2+ messages in thread
From: Andy Wingo @ 2017-03-01 14:38 UTC (permalink / raw)
To: Christopher Allan Webber; +Cc: 25211-done
On Thu 15 Dec 2016 20:39, Christopher Allan Webber <cwebber@dustycloud.org> writes:
> In Guile 2.2:
>
> (define-class <foo> ()
> (bar #:allocation #:class
> #:init-value 'baz))
>
> (slot-definition-allocation (class-slot-definition <foo> 'bar))
> => #:instance
Fixed. Thanks for the report!
Andy
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-03-01 14:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-12-15 19:39 bug#25211: GOOPS #:class alocation broken in Guile 2.2 Christopher Allan Webber
2017-03-01 14:38 ` Andy Wingo
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).