24件ヒット
[1-24件を表示]
(0.262秒)
キーワード
-
ruby 1
. 6 feature (12) -
ruby 1
. 8 . 4 feature (12)
検索結果
-
ruby 1
. 6 feature (72.0) -
ruby 1.6 feature ruby version 1.6 は安定版です。この版での変更はバグ修正がメイン になります。
...hal/Marshal.load>))
Marshal.load が 1.7 のメソッド Proc#yield を呼んでいました。
((<ruby-dev:16178>))
Marshal.load(Marshal.dump('foo'), proc {|o| p o})
=> -:1:in `load': undefined method `yield' for #<Proc:0x401b1b30> (NameError)
from -:1
ruby 1.6.7 (2......((<ruby-dev:14942>))
Module.constants.each {|c|
c = eval c
if c.instance_of?(Class)
p c
c.instance_methods.each {|m|
c.module_eval "undef #{m};"
}
c.module_eval {undef initialize}
end
}......rshal>))
無名のクラス/モジュールは dump できないようになりました。
p Marshal.dump(Class.new)
=> ruby 1.6.4 (2001-06-04) [i586-linux]
"\004\005c\031#<Class 0lx401a6b44>"
=> -:1:in `dump': can't dump anonymous class #<Class 0lx401ab980> (ArgumentErro... -
ruby 1
. 8 . 4 feature (12.0) -
ruby 1.8.4 feature ruby 1.8.4 での ruby 1.8.3 からの変更点です。
...def initialize
super
end
end
class Bar
include Foo
def initialize
Foo.instance_method(:initialize).bind(self).call
end
end
Bar.new
# => ruby 1.8.3 (2005-09-21) [i686-linux]
-:3:i......da::Tuple#initialize): check remote hash
# tuple. fixed: [ruby-list:41227]
#
# * test/rinda/test_rinda.rb: test it.
Hash全体がdumpできないオブジェクトとして扱われていました。
((<ruby-list:41227>))
: Iconv [compat]
#Sat Oct 8 20:04:40 2005 Nobuyoshi...
