[Ironruby-core] $0 global variable

John Messerly 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'
> end
>
> 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.

- John



More information about the Ironruby-core mailing list