From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Josef Wolf Newsgroups: gmane.lisp.guile.user Subject: Re: Beginner question: where is defstruct? Date: Thu, 11 Oct 2007 11:36:38 +0200 Message-ID: <20071011093638.GC30746@raven.wolf.local> References: <20071010091414.GB30746@raven.wolf.local> <87y7ebvt2y.fsf@chbouib.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1192095660 9700 80.91.229.12 (11 Oct 2007 09:41:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 11 Oct 2007 09:41:00 +0000 (UTC) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Thu Oct 11 11:40:58 2007 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IfuWy-0003hj-Ko for guile-user@m.gmane.org; Thu, 11 Oct 2007 11:40:36 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IfuWq-0004vc-I9 for guile-user@m.gmane.org; Thu, 11 Oct 2007 05:40:28 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IfuWk-0004vO-W8 for guile-user@gnu.org; Thu, 11 Oct 2007 05:40:23 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IfuWk-0004v0-Bv for guile-user@gnu.org; Thu, 11 Oct 2007 05:40:22 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IfuWj-0004uu-R7 for guile-user@gnu.org; Thu, 11 Oct 2007 05:40:21 -0400 Original-Received: from quechua.inka.de ([193.197.184.2] helo=mail.inka.de) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IfuWj-0008Eo-4X for guile-user@gnu.org; Thu, 11 Oct 2007 05:40:21 -0400 Original-Received: from raven.inka.de (uucp@[127.0.0.1]) by mail.inka.de with uucp (rmailwrap 0.5) id 1IfuWd-0005Vk-4j; Thu, 11 Oct 2007 11:40:15 +0200 Original-Received: by raven.inka.de (Postfix, from userid 1000) id E656B3A658; Thu, 11 Oct 2007 11:36:38 +0200 (CEST) Content-Disposition: inline In-Reply-To: <87y7ebvt2y.fsf@chbouib.org> User-Agent: Mutt/1.5.9i X-Detected-Kernel: Linux 2.4-2.6 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:6207 Archived-At: On Wed, Oct 10, 2007 at 06:21:25PM +0200, Ludovic Courtès wrote: > Josef Wolf writes: > > In guile's info page, all I can find is chapter 22.5, but this seems > > to describe something much more general than what defstruct would do. > `defstruct' as described in this document is something specific to some > Scheme implementation. The chapter you saw in Guile's manual is another > non-portable way to define structures, in Guile this time. > > The most portable way to define structures is to use SRFI-9: > > http://srfi.schemers.org/srfi-9/srfi-9.html > > It is available in Guile using "(use-modules (srfi srfi-9))" or > "(require-extension (srfi 9))" (the latter being the portable way to get > the portable "structures" :-)). Thanks for the explanation, Ludovic! I'll go and try to read/understand srfi-9. BTW: Why do people teach newbies non-portable things in their tutorials? _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo/guile-user