From: Takaaki Tateishi Date: 2003-12-31T00:45:11+09:00 Subject: ruby-dev summary 22273-22434 Hello, Here is a ruby-dev summary in these days. I would like to express my thanks to advisors and commenters on our activity in this year. I wish you good luck for the coming year. Thanks, [ruby-dev:22289] mswin32 optimize Tietew posted a patch by which mswin32-ruby is successfully built with the optimization option -Og. However, this patch works only with VC 7.0 and VC 7.1. [ruby-dev:22325] Array.dup.new Akira Tanaka wrote that 'Array.dup.new' didn't work with ruby-1.8 but it worked with ruby-1.6. % ruby -ve 'Array.dup.new' ruby 1.8.1 (2003-12-22) [i686-linux] -e:1:in `new': allocator undefined for # (NoMethodError) from -e:1 This problem was fixed. [ruby-dev:22329] [0x80000000].pack("U") Akira Tanaka wrote that the following message 'negative value' was strange. % ruby -e '[0x80000000].pack("U")' -e:1:in `pack': pack(U): negative value (ArgumentError) from -e:1 Nakada proposed an idea as follows. $ ./ruby -e '[0x80000000].pack("U")' -e:1:in `pack': pack(U): value out of range (ArgumentError) from -e:1 [ruby-dev:22356] (OSX) TCPServer.open(hostname, 0) Masatoshi Seki informed us that TCPServer.open(xxxx,0) didn't work on OSX, but TCPServer(0) and TCPServer(xxxx,) worked fine. This problem was caused by strange behavior of getaddrinfo(3). [ruby-dev:22366] `to_s': method `to_s' overridden (TypeError) Akira Tanaka asked why the following error was caused. % ruby -e ' a = "a" class << a; self; end.class_eval { define_method(:to_s, a.method(:to_s)) } a.to_s' -e:6:in `to_s': method `to_s' overridden (TypeError) from -e:6 Matz answered that he forgot why he had added an explicit check. Nakada suggested that they had better do check in define_method, and posted a patch to realize his suggestion. Matz agreed with him but didn't merge his patch because he was not sure of behavior of the patch. [ruby-dev:22367] sdbm: cannot insert after SPLTMAX attempts Akira Tanaka asked if the following error was expected. % rm ww.{dir,pag}; ruby -rsdbm -e ' d = SDBM.open("ww") d["\373\221"] = "a" * 534 d["\371\367"] = "a" * 477 d.close' sdbm: cannot insert after SPLTMAX attempts. -e:4:in `[]=': sdbm_store failed (SDBMError) from -e:4 Matz answered that the error depended on sdbm. [ruby-dev:22371] [Oniguruma] Version 2.0.0 Kosako informed us the release of Oniguruma 2.0.0. It is available at ftp.ruby-lang.org. [ruby-dev:22389] patches for i386-os2-emx Norihide Shinagawa stood for a OS/2 maintainer and posted a patch list for OS/2 with EMX.