unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: guile-user@gnu.org
Subject: Re: Beginner question: where is defstruct?
Date: Wed, 10 Oct 2007 18:21:25 +0200	[thread overview]
Message-ID: <87y7ebvt2y.fsf@chbouib.org> (raw)
In-Reply-To: 20071010091414.GB30746@raven.wolf.local

Hi,

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"  :-)).

Hope this helps,
Ludovic.



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


  reply	other threads:[~2007-10-10 16:21 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 [this message]
2007-10-11  9:36   ` Josef Wolf
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=87y7ebvt2y.fsf@chbouib.org \
    --to=ludo@gnu.org \
    --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).