From: Todd Gillespie Date: 2001-09-30T00:07:17+09:00 Subject: [ruby-talk:21823] Re: Embedding On Sat, 29 Sep 2001, ts wrote: > >>>>> "D" == Drirr C writes: > > D> Some of the the scripts will be in memory, and not in a file, so > D> rb_load_file(char *file) won't do. Should I use > D> rb_eval_string("anObject.each{|x| x.clearFlag }") instead? (given the > D> scripts can be large) or is it intended just for simpler commands? > > Well, the only difference between rb_load_file() and rb_eval_string() is > that the parser in the first case read from a filehandle and in the second > case from a string (your string is first duplicated). Only moderately related, but how can I do something like Tcl's Tcl_CreateInterp() to generate a seperate interpreter? What collection of internal methods and data structures do I need to access?