guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: scm_make_gsubr question


From: Mikael Djurfeldt
Subject: Re: scm_make_gsubr question
Date: Mon, 20 Jan 2003 10:00:48 +0100
User-agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2 (i386-pc-linux-gnu)

Neil Jerram <address@hidden> writes:

>>>>>> "William" == William Morgan <address@hidden> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]