Re: [Ironruby-core] Clear ScriptEngine Global Variables

2009-09-30 Thread Aaron Clauson
Ivan Porto carrero wrote: > Do you want to do it from ruby or from C#? > --- >From C#. -- Posted via http://www.ruby-forum.com/. ___ Ironruby-core mailing list Ironruby-core@rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core

Re: [Ironruby-core] Clear ScriptEngine Global Variables

2009-09-30 Thread Tomas Matousek
PATH", "-I", "-O", "-F", "FILENAME", "VERBOSE", "-v", "-w", "DEBUG", "-d", "KCODE", "-K", "SAFE", "$"] Tomas From: ironruby-core-boun...@rubyforge.org [mailt

Re: [Ironruby-core] Clear ScriptEngine Global Variables

2009-09-30 Thread CDurfee
-core-boun...@rubyforge.org 09/30/2009 07:56 AM Please respond to ironruby-core@rubyforge.org To ironruby-core@rubyforge.org cc Subject Re: [Ironruby-core] Clear ScriptEngine Global Variables if (Runtime.Globals.ContainsVariable(className)) Runtime.Globals.RemoveVariable(className);

Re: [Ironruby-core] Clear ScriptEngine Global Variables

2009-09-30 Thread Ivan Porto Carrero
Do you want to do it from ruby or from C#? --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Wed, Sep 30, 2009 at 4:07 PM, Aaron Clauson wrot

Re: [Ironruby-core] Clear ScriptEngine Global Variables

2009-09-30 Thread Aaron Clauson
Ivan Porto carrero wrote: > if (Runtime.Globals.ContainsVariable(className)) > Runtime.Globals.RemoveVariable(className); > What if i don't know classname though? My application is operating in a shared environment where a large number of users are each executing their own custom scripts. Than

Re: [Ironruby-core] Clear ScriptEngine Global Variables

2009-09-30 Thread Ivan Porto Carrero
if (Runtime.Globals.ContainsVariable(className)) Runtime.Globals.RemoveVariable(className); --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On

[Ironruby-core] Clear ScriptEngine Global Variables

2009-09-30 Thread Aaron Clauson
Hi, Is there anyway to clear all global variables from the IronRuby script engine? For example if I define a variable in a script and execute it: $myVar = "Hello" And then execute another script in a new scriptscope but with the same ScriptEngine instance and use: global_variables.each do |v