Ruby-dev summary 28606-28636

Hi all,

This is a summary of ruby-dev ML in these days.

[ruby-dev:28606] “;;” causes syntax error

Shyouhei U. reported that “;;” causes syntax error:

~ % ruby-1.8 -ve ';;'
ruby 1.8.4 (2006-02-12) [x86_64-linux]

~ % ruby -ve ';;'
ruby 1.9.0 (2006-02-14) [x86_64-linux]
-e:1: syntax error, unexpected kEND

This is because “;;” is equivalent to “end” in Ruby 1.9.
Matz noted that he is going to remove “;;” syntax.

[ruby-dev:28627] ossl_cipher.c:124: warning: control reaches end of
non-void function

Akira T. claimed that openssl extension uses too many -DHAVE_XX
options on command line, such as:

gcc -fPIC -Wall -Wno-parentheses -g -O2 -DRUBY_GC_STRESS
-I. -I../.. -I../../../../ruby -I../../../../ruby/ext/openssl

This is because macros given by command line options precede
any other macro definition. Nobuyoshi N. posted a patch
to write any HAVE_XXX macros in to the header file.

[ruby-dev:28633] load_to(file, mod)

Hidetoshi Nagai requested a new method Kernel#load_to, which loads
a ruby script on the specified module. For example:

# x.rb
C = "OK"

# main.rb
module M
load_to "./x.rb", M
p M::C   # => "OK"

Minero A. answered that #load_to is almost equivalent to

– Minero A.
ruby-dev summary index: ruby-dev summary