From: Mikael Djurfeldt <djurfeldt@nada.kth.se>
Cc: guile-devel@gnu.org
Subject: Re: scm_make_gsubr question
Date: Mon, 20 Jan 2003 10:00:48 +0100 [thread overview]
Message-ID: <xy7lm1gi4an.fsf@nada.kth.se> (raw)
In-Reply-To: <m31y38oftg.fsf@laruns.ossau.uklinux.net> (Neil Jerram's message of "19 Jan 2003 23:55:23 +0000")
Neil Jerram <neil@ossau.uklinux.net> writes:
>>>>>> "William" == William Morgan <wmorgan@masanjin.net> writes:
>
> William> Is there a way to specify, at the time you call
> William> scm_make_gsubr, a user data parameter which is passed to
> William> the corresponding C function? [...]
>
> This has just been discussed on guile-user - please see the archives
> there. (Summary: (i) no (ii) you could use an applicable smob (iii)
> description of a roundabout way of achieving the same thing.)
>
> William> If not, I would like to submit a patch...
>
> Please do so; however, here is my view of why we don't already have
> this (and which may amount to a good reason not to add it - I don't
> know).
I don't think it's a good idea to add this to gsubrs.
We already have three different ways to do it:
1. applicable smobs
2. compiled closures (cclo)
3. entities and operators (applicable structs)
Of these, 1 and 2 are easy to do from C.
M
_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-devel
next prev parent reply other threads:[~2003-01-20 9:00 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-19 20:40 scm_make_gsubr question William Morgan
2003-01-19 23:55 ` Neil Jerram
2003-01-20 8:24 ` Rob Browning
2003-01-20 8:58 ` Marius Vollmer
2003-01-20 9:00 ` Mikael Djurfeldt [this message]
2003-01-20 19:07 ` William Morgan
2003-01-20 20:03 ` Mikael Djurfeldt
2003-02-02 22:55 ` Dale P. Smith
2003-01-21 15:04 ` Marius Vollmer
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=xy7lm1gi4an.fsf@nada.kth.se \
--to=djurfeldt@nada.kth.se \
--cc=guile-devel@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).