From: David Alan Black Date: 2001-11-03T05:26:16+09:00 Subject: [ruby-talk:24198] Re: __FILE__ == $0 refactored in Ruby? Hello -- On Sat, 3 Nov 2001, Dave Thomas wrote: > David Alan Black writes: > > > Subject: [ruby-talk:21504] Replacement for __FILE__ == $0 > > > > for some earlier discussion of this. > > Although it didn't go too far. > > We already have BEGIN {} and END {} > > How about > > IF_RUN do > ... > ... > end Or maybe broken out into: if __RUN__ do ... end (just to harmonize with the surrounding syntax) David -- David Alan Black home: dblack@candle.superlink.net work: blackdav@shu.edu Web: http://pirate.shu.edu/~blackdav