Well, if you think about it, this is what Gambit does internally - in a sexp the symbol abcde is wrapped internally to (string->symbol "abcde").
> 2) you're returning symbols so I think you want your C function to> return to Scheme. Have your C function return a result code and wrap itYeah, I was trying to avoid having to do this. I'd be defining the
> in a Scheme procedure that maps the result code onto a symbol. You can
> look at Gamsock on the dumping ground for examples of how to wrap a
> low-level C function in a Scheme procedure that handles the Scheme objects.
>
return codes twice - once as ints (or whatever) and once as symbols. I
guess that's all macroable away, but still... not particularly elegant.
Thanks for the suggestions :-)
--
Alex
_______________________________________________
Gambit-list mailing list
Gambit-list@iro.umontreal.ca
https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list