|
From: | Neil Jerram |
Subject: | Re: Wrapping C++ templates in Guile |
Date: | Sun, 06 Mar 2005 14:03:07 +0000 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20050105 Debian/1.7.5-1 |
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
[Prev in Thread] | Current Thread | [Next in Thread] |