From: David Pirotte <david@altosw.be>
To: Jan Wedekind <jan@wedesoft.de>
Cc: Andy Wingo <wingo@pobox.com>, guile-devel@gnu.org
Subject: Re: GNU Guile 2.1.4 released [beta]
Date: Thu, 15 Sep 2016 16:44:00 -0300 [thread overview]
Message-ID: <20160915164400.4d7191ac@capac> (raw)
In-Reply-To: <alpine.DEB.2.11.1609152003360.5719@wedemob>
[-- Attachment #1: Type: text/plain, Size: 654 bytes --]
Hi Jan,
> Thanks a lot for the work. I am trying to run my project "aiscm" with it.
> I noticed that slots are now objects themselves. So instead of (car <>),
> one can use (slot-ref <> 'name). Please let me know if there is a better
> way to get the slot names of a class.
> (use-modules (oop goops))
> (define-class <values> ()
> (a #:init-keyword #:a))
>
> (car (car (class-slots (class-of (make <values> #:a 1))))); Guile 2.0
> (slot-ref (car (class-slots (class-of (make <values> #:a 1)))) 'name); Guile
> 2.1.4
slot-definition-name
See the '8.8 Introspection' section in the manual
David
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 473 bytes --]
next prev parent reply other threads:[~2016-09-15 19:44 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-14 11:41 GNU Guile 2.1.4 released [beta] Andy Wingo
2016-09-14 17:45 ` Nala Ginrut
2016-09-15 19:19 ` Jan Wedekind
2016-09-15 19:44 ` David Pirotte [this message]
2016-09-15 20:00 ` Jan Wedekind
2016-09-15 19:45 ` Jan Wedekind
2016-09-15 20:07 ` Jan Wedekind
2016-09-16 15:49 ` David Pirotte
2016-09-16 19:42 ` Jan Wedekind
2016-09-16 20:42 ` Jan Wedekind
2016-09-17 14:07 ` David Pirotte
2016-09-18 13:42 ` Jan Wedekind
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=20160915164400.4d7191ac@capac \
--to=david@altosw.be \
--cc=guile-devel@gnu.org \
--cc=jan@wedesoft.de \
--cc=wingo@pobox.com \
/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).