[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: dumping arbitrary structures
From: |
Paul Jarc |
Subject: |
Re: dumping arbitrary structures |
Date: |
Mon, 26 Jan 2004 17:30:20 -0500 |
User-agent: |
Gnus/5.110002 (No Gnus v0.2) Emacs/21.3 (gnu/linux) |
address@hidden wrote:
> I'm looking for something which can dump *arbitrary* guile
> structures to a byte(or scm_t_bits) array - so that they may be
> transmitted (send()) and recieved and reconstructed cleanly on the
> other end. It could also be used to save data structures to a file
> and restore them later on.
(with-output-to-string (lambda () (write object)))
That will work for built-in data types like lists, vectors, numbers,
strings, symbols, etc. User-defined records and classes are a harder
problem.
paul