[Ironruby-core] $0 global variable
jomes at microsoft.com
Wed Jan 2 17:21:54 EST 2008
Peter Bacon Darwin:
> 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?
John Lam has ARGV working--presumably it's not too hard to make $0 work too.
More information about the Ironruby-core