From: Robert Feldt Date: 2003-08-22T18:38:05+09:00 Subject: Re: What attracts me to Ruby Dan Doel skrev den Fri, 22 Aug 2003 18:31:33 +0900: > p meth1.call > p meth2.call > > It's not as transparent as in Python (calling Proc/Method objects don't > use the same syntax as normal method calls) > but there's no reason you need that for anything other than syntactic > consistency, and adding that would cause > more problems than it would solve. > (This has been discussed before but) for a "workaround" for the syntactic inconsistency: class Method def [](*a) self.call(*a) end end meth1[] # => 1 which is pretty close... ;) /Robert