Warning: overriding global function 'initialize'

foo.rb:

class A
def initialize
end
end

ruby -w foo.rb

foo.rb:2: warning: overriding global function ‘initialize’

ruby -v

ruby 1.7.3 (2002-09-25) [i386-freebsd2.2.8] /
ruby 1.7.3 (2002-09-25) [i386-mswin32]

foo.rb:

class A
def initialize
end
end
Is it all ?

ruby -w foo.rb

foo.rb:2: warning: overriding global function ‘initialize’
On my Linux system with the same version on ruby foo.rb doesn’t
show any error messages…

···

On Wed, Sep 25, 2002 at 07:03:02PM +0900, Ariff Abdullah wrote:


[ Wojtek gminick Walczak ][ http://gminick.linuxsecurity.pl/ ]
[ gminick (at) hacker.pl ][ gminick (at) underground.org.pl/ ]

Hi,

Sorry, it will be fixed soon.

						matz.
···

In message “warning: overriding global function ‘initialize’” on 02/09/25, Ariff Abdullah skywizard@time.net.my writes:

foo.rb:

class A
def initialize
end
end

ruby -w foo.rb

foo.rb:2: warning: overriding global function ‘initialize’

ruby -v

ruby 1.7.3 (2002-09-25) [i386-freebsd2.2.8] /
ruby 1.7.3 (2002-09-25) [i386-mswin32]