From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Jan Wedekind Newsgroups: gmane.lisp.guile.devel Subject: Re: GNU Guile 2.1.4 released [beta] Date: Thu, 15 Sep 2016 21:00:25 +0100 (BST) Message-ID: References: <87bmzqbtf6.fsf@pobox.com> <20160915164400.4d7191ac@capac> Reply-To: Jan Wedekind NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Trace: blaine.gmane.org 1473969658 4832 195.159.176.226 (15 Sep 2016 20:00:58 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 15 Sep 2016 20:00:58 +0000 (UTC) User-Agent: Alpine 2.11 (DEB 23 2013-08-11) Cc: Andy Wingo , guile-devel@gnu.org To: David Pirotte Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Thu Sep 15 22:00:55 2016 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bkcpw-00084z-Ah for guile-devel@m.gmane.org; Thu, 15 Sep 2016 22:00:44 +0200 Original-Received: from localhost ([::1]:37126 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bkcpu-0006Mw-GM for guile-devel@m.gmane.org; Thu, 15 Sep 2016 16:00:42 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56121) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bkcpo-0006Mc-Qh for guile-devel@gnu.org; Thu, 15 Sep 2016 16:00:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bkcpi-0007E9-7t for guile-devel@gnu.org; Thu, 15 Sep 2016 16:00:33 -0400 Original-Received: from basicbox4.server-home.net ([195.137.212.26]:38984) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bkcpi-0007DP-1z for guile-devel@gnu.org; Thu, 15 Sep 2016 16:00:30 -0400 Original-Received: from wedemob.home (host86-163-167-103.range86-163.btcentralplus.com [86.163.167.103]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by basicbox4.server-home.net (Postfix) with ESMTPSA id 2CC121530714; Thu, 15 Sep 2016 22:00:27 +0200 (CEST) X-X-Sender: jan@wedemob In-Reply-To: <20160915164400.4d7191ac@capac> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 195.137.212.26 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: "guile-devel" Xref: news.gmane.org gmane.lisp.guile.devel:18669 Archived-At: On Thu, 15 Sep 2016, David Pirotte wrote: > 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 () >> (a #:init-keyword #:a)) >> >> (car (car (class-slots (class-of (make #:a 1))))); Guile 2.0 >> (slot-ref (car (class-slots (class-of (make #:a 1)))) 'name); Guile >> 2.1.4 > > slot-definition-name > > See the '8.8 Introspection' section in the manual > > David > Thanks, that works with both versions of Guile :)