[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Removal of SCM_UNBOUND
From: |
Clinton Ebadi |
Subject: |
Removal of SCM_UNBOUND |
Date: |
Sat, 15 Apr 2006 17:41:02 -0400 |
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:address@hidden Jabber:address@hidden
I use Free Software because I value freedom over features.
443E 4F1A E213 7C54 A306 E328 7601 A1F0 F403 574B
signature.asc
Description: This is a digitally signed message part
- Removal of SCM_UNBOUND,
Clinton Ebadi <=