guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Beginner question: where is defstruct?


From: Ludovic Courtès
Subject: Re: Beginner question: where is defstruct?
Date: Wed, 10 Oct 2007 18:21:25 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux)

Hi,

Josef Wolf <address@hidden> 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.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]