This is the mail archive of the
guile@sourceware.cygnus.com
mailing list for the Guile project.
Re: hook? primitive
- To: "Keith Wright" <kwright@tiac.net>, "Greg Badros" <gjb@cs.washington.edu>
- Subject: Re: hook? primitive
- From: "Marisha Ray & Neil Jerram" <mpriz@dircon.co.uk>
- Date: Thu, 9 Sep 1999 08:59:34 +0100
- Cc: <guile@sourceware.cygnus.com>
From: Greg Badros <gjb@cs.washington.edu>
>Keith Wright <kwright@tiac.net> writes:
>
>> > From: Mikael Djurfeldt <mdj@mdj-pc.nada.kth.se>
>> >
>> > But are all of these really necessary? I think we should be a bit
>> > careful with adding new primitives.
>>
>> [...] Couldn't the whole thing be written in Scheme instead of C?
>
>It's much nicer to have it in C if you want C procedures to be using the
>hooks (e.g., running hooks on a window mapping event).
That's an argument that could be used in future to support all sorts of
not-very-primitive primitives. If the problem is that it is difficult to
call Scheme from C, the right fix is to make it easier to call Scheme from
C.