<div dir="ltr"><div><div>I should have mentioned that I need MzScheme to be a drop-in replacement for embedded Guile in a large (85,000 LOC) C++ application with 100's of scheme scripts. My plan is to use the existing structure of the application (as far as it's possible) and translate the current Guile specific C functions to MzScheme versions of these functions, and making as few changes as possible to the scheme scripts. Is this a sane way to approach this? Could I use FFI in this case or would that require an enormous restructuring?</div>
<div><br></div><div>Thanks,</div><div>Erlend</div></div><br><div class="gmail_quote">On Thu, Jul 24, 2008 at 6:15 PM, Noel Welsh <span dir="ltr"><<a href="mailto:noelwelsh@gmail.com">noelwelsh@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">To add a new C function to MzScheme the FFI is much simpler to use:<br>
<br>
<a href="http://docs.plt-scheme.org/foreign/index.html" target="_blank">http://docs.plt-scheme.org/foreign/index.html</a><br>
<br>
HTH,<br>
<font color="#888888">Noel<br>
</font><div class="Ih2E3d"><br>
On Thu, Jul 24, 2008 at 4:50 PM, Erlend Lorentzen <<a href="mailto:erlendlor@gmail.com">erlendlor@gmail.com</a>> wrote:<br>
> Hi<br>
> I'm trying to add a primitive c procedure to MzScheme. I can't show all the<br>
> code, but I'm basically doing something like this:<br>
</div>...<br>
</blockquote></div><br></div>