This is the mail archive of the guile@sourceware.cygnus.com mailing list for the Guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: GOOPS: bug or strange feature in slot initialization


Thierry Bezecourt <thbz@worldnet.fr> writes:

>   (define-method initialize ((x <foo>) args)
>     (next-method)
>     (set! (bar x) '(42)))

Does this still happen if you change this to:

   (define-method initialize ((x <foo>) args)
     (next-method)
     (set! (bar x) (list 42)))

?

This sounds like a programming error, not a goops error, on first
glance.  You have set the field to a constant list, then modified a
constant list, which is a no-no.  I haven't used goops much, though.

-russ


--
Don't send a man to do a buoy's job.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]