unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Josef Wolf <jw@raven.inka.de>
To: guile-user@gnu.org
Subject: Re: Beginner question: where is defstruct?
Date: Thu, 11 Oct 2007 11:36:38 +0200	[thread overview]
Message-ID: <20071011093638.GC30746@raven.wolf.local> (raw)
In-Reply-To: <87y7ebvt2y.fsf@chbouib.org>

On Wed, Oct 10, 2007 at 06:21:25PM +0200, Ludovic Courtès wrote:
> Josef Wolf <jw@raven.inka.de> 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


  reply	other threads:[~2007-10-11  9:36 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-10  9:14 Beginner question: where is defstruct? Josef Wolf
2007-10-10 16:21 ` Ludovic Courtès
2007-10-11  9:36   ` Josef Wolf [this message]
2007-10-11 12:29     ` Ludovic Courtès
  -- strict thread matches above, loose matches on Subject: below --
2007-10-11 11:55 dsmich

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=20071011093638.GC30746@raven.wolf.local \
    --to=jw@raven.inka.de \
    --cc=guile-user@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).