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
patch soon.
Pete
-----Original Message-----
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''
> 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
_______________________________________________
Ironruby-core mailing list
Ironruby-core at rubyforge.org
http://rubyforge.org/mailman/listinfo/ironruby-core