[racket-dev] embedding racket without overriding main?

2012-09-24 Thread Dan Liebgold
Does anyone have an example of embedding 3m Racket (5.3) in a C++ program without overriding main? I have a legacy C++ app that wants to eval some Racket code but I'd like to be minimally invasive. Might need to shell out... -- Dan Liebgold[dan.liebg...@gmail.com] _

Re: [racket-dev] embedding racket without overriding main?

2012-09-24 Thread Matthew Flatt
At Mon, 24 Sep 2012 15:10:08 -0700, Dan Liebgold wrote: Does anyone have an example of embedding 3m Racket (5.3) in a C++ program without overriding main? I have a legacy C++ app that wants to eval some Racket code but I'd like to be minimally invasive. Might need to shell out... One

Re: [racket-dev] embedding racket without overriding main?

2012-09-24 Thread Dan Liebgold
Is there any reason the scheme_main_setup trampoline can't be done later in the program (i.e. only at the point I want to invoke Racket stuff)? On Mon, Sep 24, 2012 at 5:09 PM, Matthew Flatt mfl...@cs.utah.edu wrote: At Mon, 24 Sep 2012 15:10:08 -0700, Dan Liebgold wrote: Does anyone have an

Re: [racket-dev] embedding racket without overriding main?

2012-09-24 Thread Matthew Flatt
Yes: Racket needs a consistent starting point for the GC'ed stack across calls into the Racket. At Mon, 24 Sep 2012 17:32:26 -0700, Dan Liebgold wrote: Is there any reason the scheme_main_setup trampoline can't be done later in the program (i.e. only at the point I want to invoke Racket stuff)?