Forum: Ruby ruby-dev summary 28606-28636

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Minero A. (Guest)
on 2006-05-31 22:37
(Received via mailing list)
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:
This topic is locked and can not be replied to.