unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* structures
@ 2004-10-14  7:17 Joerg Anders
  2004-10-14  9:40 ` structures Andreas Rottmann
  0 siblings, 1 reply; 2+ messages in thread
From: Joerg Anders @ 2004-10-14  7:17 UTC (permalink / raw)


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.(?)
Is that really true? Or can I load some module with
syntax extentions?
If not: What is a good substitute for (define-struct ...) ?

-- 
J.Anders, Chemnitz, GERMANY (ja@informatik.tu-chemnitz.de)


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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: structures
  2004-10-14  7:17 structures Joerg Anders
@ 2004-10-14  9:40 ` Andreas Rottmann
  0 siblings, 0 replies; 2+ messages in thread
From: Andreas Rottmann @ 2004-10-14  9:40 UTC (permalink / raw)


Joerg Anders <j.anders@informatik.tu-chemnitz.de> 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         | Rotty@ICQ      | 118634484@ICQ | a.rottmann@gmx.at
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!



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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-10-14  9:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-14  7:17 structures Joerg Anders
2004-10-14  9:40 ` structures Andreas Rottmann

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