From: "Maciek Godek" <pstrychuj@gmail.com>
To: guile-user@gnu.org
Subject: Passing C pointers through guile
Date: Sat, 5 Jul 2008 00:18:32 +0200 [thread overview]
Message-ID: <e2ceda030807041518s5e85ab97q95e42b29b90d2234@mail.gmail.com> (raw)
Hi,
is there any portable and recommended way for passing C pointers around
in guile environment?
I think of something like scm_to_ptr (analogous to scm_to_int etc.).
Certainly such a value would be completely useless for the interpreter.
One can achieve simillar functionality using the aforementioned
scm_to_int (keeping track on the word length of the build target),
but it seems rather unnatural.
Perhaps the need for passing pointers is a sign of a weakness
in design of a given system, is it so?
very good regards
mg
next reply other threads:[~2008-07-04 22:18 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-04 22:18 Maciek Godek [this message]
2008-07-05 16:59 ` Passing C pointers through guile Ludovic Courtès
[not found] <cmu-lmtpd-16223-1215360367-2@mail-imap1.uio.no>
2008-07-06 16:13 ` Kjetil S. Matheussen
2008-07-06 19:20 ` Ludovic Courtès
2008-07-09 16:48 ` Greg Troxel
2008-07-09 16:55 ` Kjetil S. Matheussen
2008-07-09 19:54 ` Ludovic Courtès
2008-07-10 15:11 ` Ken Raeburn
2008-07-23 11:19 ` Greg Troxel
-- strict thread matches above, loose matches on Subject: below --
2008-07-10 12:54 Kjetil S. Matheussen
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=e2ceda030807041518s5e85ab97q95e42b29b90d2234@mail.gmail.com \
--to=pstrychuj@gmail.com \
--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).