This is the mail archive of the
guile@sourceware.cygnus.com
mailing list for the Guile project.
Re: GOOPS: bug or strange feature in slot initialization
- To: Thierry Bezecourt <thbz at worldnet dot fr>
- Subject: Re: GOOPS: bug or strange feature in slot initialization
- From: Russell McManus <russell dot mcmanus at msdw dot com>
- Date: 18 Apr 2000 16:20:55 -0400
- Cc: guile at sourceware dot cygnus dot com
- References: <m21z431bmk.fsf@worldnet.fr>
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.