From: ara.t.howard@... Date: 2006-04-02T02:47:38+09:00 Subject: Re: ruby-dev summary 28274-28600 On Sun, 2 Apr 2006, Yukihiro Matsumoto wrote: > I'm not sure what you meant. Do you mean both should print > ["-e", 1] ? If so, what do you want to print by: > > p "__FILE__ __LINE__" > > ? Or what if > > def foo(x) > eval(x) > end > > ... and in some other file... > foo("p [__FILE__, __LINE__]") > > ? > matz. sorry i wasn't clear. i just meant that even though ruby does not have real functions using __FUNCTION__ (and alias __METHOD__) seems to be o.k. since - it inherits idea from c like __FILE__ and __LINE__ - __FILE__ and __LINE__ work even when there is no 'real' file or line (unlike c) so it seems ok that __FUNCTION__ might work even though there is no 'real' function ;-) btw. whatever it is called this will be a very nice feature to have! regards. -a -- share your knowledge. it's a way to achieve immortality. - h.h. the 14th dali lama