This is the mail archive of the guile@cygnus.com mailing list for the guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: structs, records, SMOBs etc.


Telford Tendys <telford@triangle.triode.net.au> writes:

> The current limitations that I'm experiencing are
> [1] I'm writing a lot of scm->C and C->scm translations into everything,
>     they don't seem to make much difference to the speed (though they
>     can't be helping) but they do obfuscate the code and forgetting to
>     include a translation (especially C->scm) is usually instant segmentation
>     violation signals.
> [2] I'm writing a lot of scheme entry points that are essentially the same
>     as C entry points but they check the types and do translations scm->C
>     then call the C entry point. OK, I accept that the entry point has to
>     be there but this feeling od deja-vu keeps coming to me.

Have you looked at a wrapper generator?  Maybe I'm misunderstanding
what you're doing, but it seems like G-wrap should help. 

Andrew