Re: [racket-users] scheme_eval_string equivalent for racket-cs

2020-12-17 Thread Matthew Flatt
That will work if your namespace has `open-input-bytes`, etc. It might be better to use `racket_dynamic_require` to specifically get the functions from `racket/base`, applying each with `racket_apply`. A better strategy might be to have a function that combines all of these pieces in an embedded m

[racket-users] scheme_eval_string equivalent for racket-cs

2020-12-16 Thread Dan Dexter
I'm porting existing code that is embedding racket and I'm going from racket-bc to racket-cs. In racket-bc, the code is calling scheme_eval_string() and scheme_eval_string_all(). I don't see a direct replacement for these functions in racket-cs. Based on the embedding example in the docs, I'm