From: ts Date: 2002-06-05T16:30:23+09:00 Subject: Re: eval and local variable >>>>> "P" == Park Heesob writes: P> I think the problem is that Ruby cannot distinguish local variable from P> method by its name. It can when you make for example an assignement a = 12 # ==> local variable when it's not an assignement, then ruby search if it exist a local variable with this name. If the local variable is not found (i.e. it has not seen a line where this variable was assigned) then it's a method call. With Rite, you'll have a warning for this /* method call without arguments */ #if 0 /* Rite will warn this */ rb_warn("ambiguous identifier; %s() or self.%s is better for method call", rb_id2name(id), rb_id2name(id)); #endif Guy Decoux