D
Daniel Berger
Hi all,
Ruby 1.8.1
Solaris 9
It appears that the forwardable module raises a couple of warnings
that concern me that did not appear in 1.6.8:
(__FORWARDABLE__):1: warning: redefining `__send__' may cause serious
problem
(__FORWARDABLE__):1: warning: redefining `__id__' may cause serious
problem
Do I need to be worried? Does forwardable need a patch? Or is there
another module I should be using instead? I know I don't want to have
to see these warnings every time I use this module. Please advise.
Regards,
Dan
# test.rb
require "forwardable"
class Foo
extend Forwardable
def_delegators@bar,*(Array.instance_methods))
def initialize
@bar = []
end
end
if $0 == __FILE__
f = Foo.new
f.push("hello")
end
Ruby 1.8.1
Solaris 9
It appears that the forwardable module raises a couple of warnings
that concern me that did not appear in 1.6.8:
(__FORWARDABLE__):1: warning: redefining `__send__' may cause serious
problem
(__FORWARDABLE__):1: warning: redefining `__id__' may cause serious
problem
Do I need to be worried? Does forwardable need a patch? Or is there
another module I should be using instead? I know I don't want to have
to see these warnings every time I use this module. Please advise.
Regards,
Dan
# test.rb
require "forwardable"
class Foo
extend Forwardable
def_delegators@bar,*(Array.instance_methods))
def initialize
@bar = []
end
end
if $0 == __FILE__
f = Foo.new
f.push("hello")
end