From: Simon Strandgaard <0bz63fz3m1qt3001@...> Date: 2003-04-13T22:34:02+09:00 Subject: Re: ruby_script() On Sun, 13 Apr 2003 23:13:13 +0900, nobu.nokad wrote: > Hi, > > At Sun, 13 Apr 2003 21:53:49 +0900, > Simon Strandgaard wrote: >> > ./a.out -e 'puts "hello"; raise "out"' >> hello >> -e:1: out (RuntimeError) > > Because the source is given by "-e". > >> ruby_script("embed"); // seems not to have any effect ? >> ruby_options(argc, argv); > > ruby_options() calls ruby_script(). OK.. Now I've swapped them. But it makes no difference. > ./a.out -e 'puts "hello"; raise "out"' hello -e:1: out (RuntimeError) > less main.cpp #include int main(int argc, char *argv[]) { ruby_init(); ruby_init_loadpath(); ruby_options(argc, argv); ruby_script("embed"); // what is going on? ruby_run(); } > -- Simon Strandgaard