Ask a Question related to Ruby, Design and Development.
-
Jim Cain #1
Difference in module_eval taking block vs. taking string (1.8 bug?)
The following code:
class Klass
end
p Klass.instance_methods(false)
Klass.module_eval do
def hello
puts 'hello'
end
end
p Klass.instance_methods(false)
Klass.module_eval("def hello2() puts 'hello2'; end")
p Klass.instance_methods(false)
produces this output in 1.8.0pre3:
[]
[]
["hello2"]
but in 1.6.8 it produces:
[]
["hello"]
["hello2", "hello"]
Is this a bug in 1.8 or a feature?
Jim Cain Guest
-
Buffering taking too long
I have Flash 8 installed and it does work but it is taking about twenty minutes to buffer a three to four minute video. I don't think it is the... -
Taking up 50% CPU
Why does contribute consume 50% of my CPU when it goes out of the foreground. All I have to do is Apple + Tab and watch my activity monitor light... -
Taking screenshot...
Anyone knows how to take a screenshot with lingo so i can pass it to a flash member?? Thanks! ;) -
Jrun.exe taking 100% of CPU
Please, help! I have 100% CPU usage on my server hosting CF MX 6.1 server. There are only about 50 users on the application and it is local intranet... -
rsh taking 7 min to respond???? please help
Hi all, I have an RS6000 running AIX v 5.1.... I have installed gnu cvs 1.11.7 and I would like to use the RS6000 as my cvs repository. The... -
Yukihiro Matsumoto #2
Re: Difference in module_eval taking block vs. taking string (1.8 bug?)
Hi,
In message "Difference in module_eval taking block vs. taking string (1.8 bug?)"
on 03/07/18, Jim Cain <list@jimcain.us> writes:
|Is this a bug in 1.8 or a feature?
It was a bug fixed July 2 2003.
Wed Jul 2 13:22:39 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
* eval.c (rb_yield_0): override visibility mode for module_eval
etc. (ruby-bugs-ja PR#505)
matz.
Yukihiro Matsumoto Guest



Reply With Quote

