[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: structures
From: |
Andreas Rottmann |
Subject: |
Re: structures |
Date: |
Thu, 14 Oct 2004 11:40:56 +0200 |
User-agent: |
Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux) |
Joerg Anders <address@hidden> writes:
> Hi all!
>
> I'm a LISP, SCHEME and GUILE newbie. I try to study
> Artificial Intelligence.
>
> My problem is: Most published examples use the
>
> (define-struct ...)
>
> function to create und use structures.
>
> I already searched the GUILE mailing list archive and found
> (define-struct ...) seems to be no SCHEME standard
> statement.(?)
>
True there is no standard (R5RS) way to define structures, but there
is SRFI-9 [0] (Defining record types). You can load it into guile with
(use-modules (srfi srfi-9)).
[0] http://srfi.schemers.org/srfi-9/srfi-9.html
> Is that really true? Or can I load some module with
> syntax extentions?
> If not: What is a good substitute for (define-struct ...) ?
>
You could also use GOOPS classes instead of structures.
HTH, Rotty
--
Andreas Rottmann | address@hidden | address@hidden | address@hidden
http://yi.org/rotty | GnuPG Key: http://yi.org/rotty/gpg.asc
Fingerprint | DFB4 4EB4 78A4 5EEE 6219 F228 F92F CFC5 01FD 5B62
It's *GNU*/Linux dammit!
- structures, Joerg Anders, 2004/10/14
- Re: structures,
Andreas Rottmann <=