GNU bug report logs - #25211
GOOPS #:class alocation broken in Guile 2.2

Previous Next

Package: guile;

Reported by: Christopher Allan Webber <cwebber <at> dustycloud.org>

Date: Thu, 15 Dec 2016 19:41:02 UTC

Severity: normal

Done: Andy Wingo <wingo <at> pobox.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 25211 in the body.
You can then email your comments to 25211 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guile <at> gnu.org:
bug#25211; Package guile. (Thu, 15 Dec 2016 19:41:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Christopher Allan Webber <cwebber <at> dustycloud.org>:
New bug report received and forwarded. Copy sent to bug-guile <at> gnu.org. (Thu, 15 Dec 2016 19:41:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Christopher Allan Webber <cwebber <at> dustycloud.org>
To: bug-guile <at> gnu.org
Subject: GOOPS #:class alocation broken in Guile 2.2
Date: Thu, 15 Dec 2016 13:39:47 -0600
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!




Reply sent to Andy Wingo <wingo <at> pobox.com>:
You have taken responsibility. (Wed, 01 Mar 2017 14:39:02 GMT) Full text and rfc822 format available.

Notification sent to Christopher Allan Webber <cwebber <at> dustycloud.org>:
bug acknowledged by developer. (Wed, 01 Mar 2017 14:39:02 GMT) Full text and rfc822 format available.

Message #10 received at 25211-done <at> debbugs.gnu.org (full text, mbox):

From: Andy Wingo <wingo <at> pobox.com>
To: Christopher Allan Webber <cwebber <at> dustycloud.org>
Cc: 25211-done <at> debbugs.gnu.org
Subject: Re: bug#25211: GOOPS #:class alocation broken in Guile 2.2
Date: Wed, 01 Mar 2017 15:38:52 +0100
On Thu 15 Dec 2016 20:39, Christopher Allan Webber <cwebber <at> 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




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 30 Mar 2017 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 8 years and 134 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.