From: gwtmp01@... Date: 2006-04-06T23:30:13+09:00 Subject: Re: statistics module problem On Apr 6, 2006, at 10:08 AM, Craig Kim wrote: > > So I replaced the line that reads "@stat_block || > type.default_block" with > "@stat_block || class.default_block" and ran the same script and > now I get > the following error message: The problem is unique to the method 'class' because the parser confuses the method call with the use of 'class' as a keyword to start a class/end block. The solution is to disambiguate the case with an explicit call to self: type.default_block #deprecated class.default_block #syntax error, parser gets confused self.class.default_block # all is well Personally I wish the parser was smarter (but maybe it is a grammar problem?) or that the method wasn't called 'class' to avoid the ambiguity. For some reason I just don't like the extraneous 'self'. Gary Wright