From: Andy Wingo <wingo@pobox.com>
To: Andrew Gaylard <ag@computer.org>
Cc: guile-user@gnu.org
Subject: Re: Persisting GOOPS objects
Date: Sun, 20 Jan 2013 21:15:52 +0100 [thread overview]
Message-ID: <87bocja9vr.fsf@pobox.com> (raw)
In-Reply-To: <CALLpd2BbNVKzQ=r9vfJX3oMOWdcP596ZAF_Z_f6sgQpjGHLVWA@mail.gmail.com> (Andrew Gaylard's message of "Fri, 18 Jan 2013 12:25:40 +0200")
Hi,
On Fri 18 Jan 2013 11:25, Andrew Gaylard <ag@computer.org> writes:
> I'm trying to persist a GOOPS object.
>
> I've found oop/goops/save.scm, which defines save-object.
> That looks like what I need.
Cool. I don't know of anyone that has used this code in many years, so
be prepared for some bugs. OTOH if it works fine, documentation is
appreciated :)
> scheme@(guile-user)> (save-objects l (current-output-port))
> (define c 'c)
> ERROR: In procedure hashq-get-handle:
> ERROR: In procedure hashq-get-handle: Handle access not permitted on
> weak table
This is an implementation bug, introduced May 2011 by a change to the
weak table interface. See commit
1d9c2e6271105ee0f728127d9b544432b7cc0f4f for full details.
I have fixed this in stable-2.0. You can fix in in your copy by:
(set! (@@ (oop goops save) readable?)
(lambda (x) (hashq-ref (@@ (oop goops save) readables) x)))
Regards,
Andy
--
http://wingolog.org/
next prev parent reply other threads:[~2013-01-20 20:15 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-18 10:25 Persisting GOOPS objects Andrew Gaylard
2013-01-20 20:15 ` Andy Wingo [this message]
2013-01-21 12:48 ` Andrew Gaylard
2013-01-22 9:47 ` Andy Wingo
2013-01-23 13:46 ` Andrew Gaylard
2013-01-23 15:55 ` Andy Wingo
2013-01-25 18:06 ` Andrew Gaylard
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=87bocja9vr.fsf@pobox.com \
--to=wingo@pobox.com \
--cc=ag@computer.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).