unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: "Mikael Djurfeldt" <mdjurfeldt@gmail.com>
Cc: Mikael Djurfeldt <djurfeldt@nada.kth.se>, guile-devel@gnu.org
Subject: Re: Removal of SCM_UNBOUND
Date: Sun, 16 Apr 2006 00:03:01 +0200	[thread overview]
Message-ID: <66e540fe0604151503l5d648f10p7e997ced73e37137@mail.gmail.com> (raw)
In-Reply-To: <1145137262.8613.42.camel@localhost.localdomain>

On 4/15/06, Clinton Ebadi <clinton@unknownlamer.org> wrote:
> 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

(define x (if #f #f))
(slot-set! quux 'bar x)


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


  reply	other threads:[~2006-04-15 22:03 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-15 21:41 Removal of SCM_UNBOUND Clinton Ebadi
2006-04-15 22:03 ` Mikael Djurfeldt [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=66e540fe0604151503l5d648f10p7e997ced73e37137@mail.gmail.com \
    --to=mdjurfeldt@gmail.com \
    --cc=djurfeldt@nada.kth.se \
    --cc=guile-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).