unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* Removal of SCM_UNBOUND
@ 2006-04-15 21:41 Clinton Ebadi
  2006-04-15 22:03 ` Mikael Djurfeldt
  0 siblings, 1 reply; 6+ messages in thread
From: Clinton Ebadi @ 2006-04-15 21:41 UTC (permalink / raw)



[-- Attachment #1.1: Type: text/plain, Size: 1023 bytes --]

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:unknown_lamer@fnode#tpu Jabber:clinton@hcoop.net
I use Free Software because I value freedom over features.
443E 4F1A E213 7C54 A306  E328 7601 A1F0 F403 574B

[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

[-- Attachment #2: Type: text/plain, Size: 143 bytes --]

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-04-17  8:21 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-15 21:41 Removal of SCM_UNBOUND Clinton Ebadi
2006-04-15 22:03 ` Mikael Djurfeldt
2006-04-15 22:06   ` Mikael Djurfeldt
2006-04-15 22:13     ` Mikael Djurfeldt
2006-04-15 23:26       ` Neil Jerram
2006-04-17  8:21         ` Mikael Djurfeldt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).