From: "సూర్యం" Date: 2008-04-08T04:09:33+09:00 Subject: Re: unable to set $0 from C extension On Apr 7, 11:50 am, Eric Hodel wrote: > On Apr 6, 2008, at 10:38 AM, Suraj N. Kurapati wrote: > >>> any modifications to $0 from Ruby code are raising a > >>> "RuntimeError: $0 not initialized". > > > A simpler solution would be to disable the hookedness of $0 > > altogether, so that there are no handlers involved anymore: > > Then the program name isn't set for ps(1) or top(1). Correct. That is an acceptable consequence for my use case: I am embedding a Ruby interpreter inside a Verilog simulator and I don't have access to main() or the proper ARGV for the process anyway. Thanks for the reply. :-)