guile-devel
[Top][All Lists]
Advanced

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

Re: [patch] subordinate SMOBs with GOOPS superclasses


From: Ludovic Courtès
Subject: Re: [patch] subordinate SMOBs with GOOPS superclasses
Date: Tue, 11 Dec 2007 16:02:37 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux)

Hi Andreas,

Andreas Rottmann <address@hidden> writes:

> You should probably also have a look at the Scheme-Level FFI of PLT
> Scheme[1], and my reimplementation for Scheme 48[2].

Thanks for the links, that's the kind of think I had in mind.  Perhaps
you'd like to port S42 to Guile as well?  :-)

BTW, there's one small potential issue with the dynamic construction of
function calls like this: it's almost impossible to catch API/ABI
inconsistencies beforehand.

For instance, if one wraps `strcmp' from Scheme as if it were, say,
"char *strcmp (int, double, float)", it's impossible to catch the
problem before actually calling the wrapped `strcmp'.  Symbol versioning
could help in some cases, but I don't think it's readily usable (and
probably not portably).  Conversely, good old C wrappers (be they
generated or not) would most likely catch such problems at
compilation-time.

Any thoughts about this?

Thanks,
Ludovic.





reply via email to

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