[Ironruby-core] $0 global variable
Peter Bacon Darwin
bacondarwin at googlemail.com
Wed Jan 2 17:44:39 EST 2008
Thanks Johns. I have worked around it so it is not so important now.
Nearly got the rest of the number stuff done. Look out for a big new year
From: ironruby-core-bounces at rubyforge.org
[mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of John Messerly
Sent: Wednesday,02 January 02, 2008 22:22
To: ironruby-core at rubyforge.org
Subject: Re: [Ironruby-core] $0 global variable
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.
Ironruby-core mailing list
Ironruby-core at rubyforge.org
More information about the Ironruby-core