From: Han Holl Date: 2005-05-25T21:55:39+09:00 Subject: Re: if __FILE_ == $0 executed twice On 5/25/05, nobuyoshi nakada wrote: > Hi, > > At Wed, 25 May 2005 19:51:14 +0900, > Han Holl wrote in [ruby-talk:143604]: > > Does it also put $0 in $" ? > > No, $0 isn't required. > > > That would solve my problem. > > Why not move the `if' block to another file (with no suffix), like > irb for instance? > Under the if are mostly tests. The files are meant as libraries. It's nice to have the tests nearby, and not in a seperate file. Is there a reason why $0 is not required ? It seems a logical thing to do. Would it break things ? Just curious. Cheers Han Holl