[Ironruby-core] $0 global variable

Peter Bacon Darwin bacondarwin at googlemail.com
Fri Dec 28 16:16:48 EST 2007

I would really like to be able to do this:


if __FILE__ == $0

  require File.dirname(__FILE__) + '/../../Util/simple_test.rb'



But, since $0 currently always returns nil, I can't.


Any chance you could squeeze it into the next SVN revision?




-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20071228/3fe852ad/attachment-0001.html 

More information about the Ironruby-core mailing list