Project

General

Profile

Actions

Bug #1757

closed

cygwin-1.7, gcc4-4.3, and ruby-1.9. method `inspect' called on hidden object (0x10046720) (NotImplementedError)

Added by neomjp (neomjp neomjp) almost 15 years ago. Updated almost 13 years ago.

Status:
Closed
Target version:
ruby -v:
ruby 1.9.2dev (2009-07-10 trunk 24017) [i386-cygwin]
Backport:
[ruby-core:24251]

Description

=begin
I tried compiling ruby-1.9.2-r24017 on cygwin-1.7.0 using gcc-4.3 as follows:

$ cygcheck -f /bin/cygwin1.dll /usr/bin/gcc-4
cygwin-1.7.0-50
gcc4-core-4.3.2-2

$ ../ruby-1.9.2-r24017/configure --program-suffix="-19" --with-ridir="/usr/share/ri-19" CC="gcc-4" CFLAGS="-O2 -pipe -DCCP_WIN_A_TO_POSIX=CCP_WIN_A_TO_POSIX"

$ make

The -DCCP_WIN_A_TO_POSIX=CCP_WIN_A_TO_POSIX above was added to make use of the #if switch introduced in r23468 to skip a deprecated function in cygwin 1.7(, and is not related to the issue that follows). Then,

$ ./miniruby.exe -v -e 'p($:)'
ruby 1.9.2dev (2009-07-10 trunk 24017) [i386-cygwin]
-e:1:in inspect': method inspect' called on hidden object (0x100466f8) (NotImplementedError)
from -e:1:in p' from -e:1:in '

$ ./miniruby.exe -e 'puts($-I)'
-e:1:in puts': method respond_to?' called on hidden object (0x100466f8) (NotImplementedError)
from -e:1:in puts' from -e:1:in '

So, $:, $-I, and $LOAD_PATH seem to be hidden objects, somehow.
=end

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0