[#2367] Standard libraries — Dave Thomas <dave@...>

From ruby-dev summary:

60 messages 2004/02/11

[#2397] PATCH: deprecate cgi-lib, getopts, importenv, parsearg from standard library — Gavin Sinclair <gsinclair@...>

Index: cgi-lib.rb

15 messages 2004/02/12

[#2465] PATCH: OpenStruct#initialize to yield self — Gavin Sinclair <gsinclair@...>

This is a common approach I use to object initialization; I don't know

24 messages 2004/02/19

Re: Maybe bug

From: matz@... (Yukihiro Matsumoto)
Date: 2004-02-09 23:42:09 UTC
List: ruby-core #2365
Hi,

In message "Maybe bug"
    on 04/02/10, "Dmitry V. Sabanin" <sdmitry@lrn.ru> writes:

|But when I'm trying to symlink that file to, for example, 
|cd lib
|ln -s ../ext/extensionbla.so extension.so
|after a simple ruby -e 'require "extension.so"' I see message like: "Init_extension" is not defined.
|I found the problem, it's ruby that tries to match Init_ function by using symlink name, not the real file one.

Don't symlink extensions.

  * readlink is not portable.

  * you can always wrap C extension by Ruby library, i.e. you can
    prepare small Ruby program extension.rb that requires
    extensionbla.so.

							matz.

In This Thread

Prev Next