Tomas Matousek wrote:
> Can you describe your scenario where you use the command line? What 
> features you need? It's relatively easy to implement a command line 
> yourself (see e.g. 
> http://blog.tomasm.net/2009/04/15/python-says-hello-to-ruby/). The APIs 
> in Microsoft.Hosting.Shell are mostly legacy and I wouldn't recommend 
> using them.
> 
> Tomas

Thanks Tomas

At last, I found a thread you replied previously. if I used

            RubyContext context = GetExecutionContext(ruby);
            context.DefineGlobalVariable("logowin",logowin);

it works as expected.. this made me a little confused, is the

context.DefineGlobalVariable

the same as

ruby.Runtime.Globals.SetVariable

the naming is just similiar and drive me crazy..

Regards
Ray
-- 
Posted via http://www.ruby-forum.com/.
_______________________________________________
Ironruby-core mailing list
Ironruby-core@rubyforge.org
http://rubyforge.org/mailman/listinfo/ironruby-core

Reply via email to