From: Yukihiro Matsumoto Date: 2006-04-02T01:43:27+09:00 Subject: Re: ruby-dev summary 28274-28600 Hi, In message "Re: ruby-dev summary 28274-28600" on Sat, 1 Apr 2006 23:54:36 +0900, ara.t.howard@noaa.gov writes: |> [ruby-dev:28481] __method__ for current method |> |> Usa Nakamura suggested a new method __method__ to access name of |> currently executing method. The name is chosen to go with __FILE__ and |> __LINE__ but it's a method not syntax. | |why not be consistent | | harp:~ > cat a.c | #include | #include | main () { printf ("%s:%s:%d\n", __FILE__, __FUNCTION__, __LINE__); } | | | harp:~ > gcc a.c && a.out | a.c:main:3 Because we don't have real functions but methods in Ruby. matz.