Mario Storti wrote:
Hi all!

I have written a vector library, similar to the C++ STL vector<>
library. [...] How can I
make this more general, i.e. for other instantiations like
`dvint-fill-with-proc v proc', for integers? Should I use OOP and made
it generic, or is this an overkill? Should I use macros? And what about
efficiency?

Hi Mario,

I don't think we have enough detail yet to advise you. What precisely is the signature of the SMOBs and/or procedures that you have exported from C++ to Scheme? Is a procedure like dvdbl-fill-with-proc one that is exported directly from C++, or is it coded in Scheme on top of something more primitive that you have exported from C++?

Regards,
        Neil


_______________________________________________ Guile-user mailing list [email protected] http://lists.gnu.org/mailman/listinfo/guile-user

Reply via email to