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 <stdlib.h>
|     #include <stdio.h>
|     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.