Yukihiro Matsumoto
4/1/2006 5:32:00 PM
Hi,
In message "Re: ruby-dev summary 28274-28600"
on Sun, 2 Apr 2006 01:59:34 +0900, ara.t.howard@noaa.gov writes:
|i see your point... still, it seems to cut both ways:
|
| harp:~ > ruby -e' p [__FILE__, __LINE__]; eval "p [__FILE__, __LINE__]" '
| ["-e", 1]
| ["(eval)", 1]
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.