When I was running through the evaluator code, I noticed the comment on
SCM_UNBOUND (only used by GOOPS), and that it should be replaced by
SCM_UNSPECIFIED.

Defining SCM_GOOPS_UNBOUND to SCM_UNDEFINED seemed to work:

guile> (version)
"1.9.0"
guile> (use-modules (oop goops))
guile> (define-class <foo> () (bar))
guile> (define quux (make <foo>))
guile> (slot-ref quux 'bar)

Backtrace:
In current input:
   5: 0* [slot-ref #<<foo> a7cd00f0> bar]

<unnamed port>:5:1: In procedure slot-ref in expression (slot-ref quux
(quote bar)):
<unnamed port>:5:1: Slot `bar' is unbound in object #<<foo> a7cd00f0>
ABORT: (goops-error)
guile> (slot-set! quux 'bar 5)
guile> (slot-ref quux 'bar)
5

Is there anything I am missing, or would it be possible to just drop
SCM_UNBOUND from CVS HEAD?
-- 
http://unknownlamer.org
AIM:unknownlamer IRC:[EMAIL PROTECTED] Jabber:[EMAIL PROTECTED]
I use Free Software because I value freedom over features.
443E 4F1A E213 7C54 A306  E328 7601 A1F0 F403 574B

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-devel

Reply via email to