[gambit-list] Using Gambit Scheme with Xcode

Alex Queiroz asandroq at gmail.com
Mon Apr 4 20:31:16 EDT 2011


Hallo,

On Mon, Apr 4, 2011 at 1:00 AM, mikel evins <mevins at me.com> wrote:
>
>
> There are a lot more details that come up once you've got builds working, but they are just details. For example, passing integers, character, and booleans back and forth between Scheme and Objective-C is easy, but more complex types get more involved. Character strings are not bad, but you have to remember that passing a string from Scheme to C mallocs a new string every time, so you have to be mindful of what happens to that memory. For more complicated structures than strings, you have some work cut out for you figuring out how best to handle them.
>

     Apple made this a lot easier. C types like CFString, CFArray and
CFDictionary can be directly cast to their Objective-C counterparts,
which can help a lot with the binding.

-- 
-alex
http://www.artisancoder.com/



More information about the Gambit-list mailing list