"Martin DeMello" <martindemello / yahoo.com> wrote in message news:42f186e.0305181137.49c123ad / posting.google.com... > dblack / superlink.net wrote in message news:<Pine.LNX.4.44.0305170101001.2373-100000 / candle.superlink.net>... > > On Sat, 17 May 2003, Martin DeMello wrote: > > > Actually, I like MAIN - it has a lot of precedent. > > > > Precedent, baggage, whatever :-) My problem with MAIN is that it's not > > a good fit, in the sense that usually what gets put at the bottom is > > test code, typically in files that really aren't designed to be run by > > themselves. So the closest equivalent to "main" is probably in > > another file (i.e., one that 'require's this file). > > Good point. I don't like TEST or DEMO because they're too restrictive. > How about LOCAL? That even sounds like a scoping directive, which is > effectively what it is. > > class MyLib > . > . > . > end > > LOCAL { > test code > } > > martin Attractive ;-) http://www.rubygarden.org/ruby?LocalVariablesAndBlocks/ProposedBehaviour local { } daz