From: Simon Strandgaard Date: 2004-05-01T19:08:04+09:00 Subject: Re: File.expand_path(__FILE__) "Robert Klemme" wrote: > "Simon Strandgaard" schrieb im Newsbeitrag > > > > > > I think its time to rethink __FILE__ and get rid of $0. > > I certainly disagree here: $0 never changes automatically during the > lifetime of a script while __FILE__ reflects the current file. That's an > important distinction in the light of require and load. Just imagine a > help module that automatically prints invocation hints... You are right.. I were to quick to rid of $0.. of cause some kind of replacement are needed. :-) $0 is a mixup to me, it mixes A) invocation path. B) program name, which ps/top can use. Two different things to me. But I have no ideas to what an eventual replacement could be like. BTW: I have submitted an RCR about the __FILE__ problem. http://rcrchive.net/rcr/RCR/RCR250 -- Simon Strandgaard