Ruby-dev summary 22625-22687

Hi.
This is “ruby-dev summary” of last week: 22625-22687.

[ruby-dev:22642] optparse default options
Minero Aoki asked if the default definition of “–help” option of
OptionParser would be overspec. (This issue is still open.)

In this discussion, eban proposed that constant values such as
"VERSION", “RELEASE_DATE”, “PLATFORM” in ruby/version.c should
be removed. This was done.

http://www.ruby-lang.org/cgi-bin/cvsweb.cgi/ruby/version.c.diff?r1=1.8&r2=1.9

[ruby-dev:22654] overflow when pack integers
Tanaka Akira threw a question about String#pack, about inconsistent behavior at
values boundary. See follows:
http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-dev/22654

matz noticed this inconsistency, though the fix seemed not so easy.
Even if it is done by someone, he won’t say complaint :slight_smile:

[ruby-dev:22658] make install-doc
SHINAGAWA Norihide said that doing “make install-doc” consume
memory around 200MB - 300MB on OS/2. His working environment which has
192MB pyshical memory took 5 hours to carry out full build ruby.
eban agreed that ruby on OS/2 may have a memory leak.

[ruby-dev:22662] NODE_NEWLINE -> NEWILNE flag
NODE_NEWLINE was removed from current ruby interpreter.
(It has an impact to ruby’s node user like me :slight_smile:

NaHi reported some bugs because of this change.

Regards,

···


// SASADA Koichi @ namikilab.tuat.ac.jp
// newbie of ruby-dev summary

Hi,

In mail “ruby-dev summary 22625-22687”

[ruby-dev:22642] optparse default options
Minero Aoki asked if the default definition of “–help” option of
OptionParser would be overspec. (This issue is still open.)

My intent is not on “–help”, but “–version”.

~ % cat test.rb
require ‘optparse’
parser = OptionParser.new
parser.parse!

~ % ruby-1.8.1 test.rb --version
test 1.8.1
~ %

This “1.8.1” is derived from “VERSION” constant.
OptionParser sees the definition of “–version”,
next “Version”, then “VERSION”.

Regards,
Minero Aoki

···

“K.Sasada” ko1@namikilab.tuat.ac.jp wrote: