emacs-bug-tracker
[Top][All Lists]
Advanced

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

[debbugs-tracker] bug#25211: closed (GOOPS #:class alocation broken in G


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#25211: closed (GOOPS #:class alocation broken in Guile 2.2)
Date: Wed, 01 Mar 2017 14:39:02 +0000

Your message dated Wed, 01 Mar 2017 15:38:52 +0100
with message-id <address@hidden>
and subject line Re: bug#25211: GOOPS #:class alocation broken in Guile 2.2
has caused the debbugs.gnu.org bug report #25211,
regarding GOOPS #:class alocation broken in Guile 2.2
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
25211: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=25211
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: GOOPS #:class alocation broken in Guile 2.2 Date: Thu, 15 Dec 2016 13:39:47 -0600 User-agent: mu4e 0.9.16; emacs 25.1.1
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!



--- End Message ---
--- Begin Message --- Subject: Re: bug#25211: GOOPS #:class alocation broken in Guile 2.2 Date: Wed, 01 Mar 2017 15:38:52 +0100 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux)
On Thu 15 Dec 2016 20:39, Christopher Allan Webber <address@hidden> 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


--- End Message ---

reply via email to

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