From: dblack@... Date: 2002-09-07T01:38:09+09:00 Subject: Re: understanding functions under ruby Hello -- On Sat, 7 Sep 2002, C�dric Foll wrote: > Hi > > Why func.type (or self.func.type) doesn't work (when func is a function)? If func is a method call, then you're calling type on the return value of the call. It should work OK, on that basis. > I've understood (even if i > don't like) the python way where there is a class "function", but i don't > understand the ruby way. > I've read that the difference between a function and a method is only from > where u call it (method from outside, function inside the class). I'm right? > How access to functions ? I don't remember there being such a distinction in Ruby. There are class methods and instance methods (and procs and blocks), but I think that's it. (Maybe "function" is sometimes used informally as a synonym for "method"?) David -- David Alan Black | Register for RubyConf 2002! home: dblack@candle.superlink.net | November 1-3 work: blackdav@shu.edu | Seattle, WA, USA Web: http://pirate.shu.edu/~blackdav | http://www.rubyconf.com