[Windows] Problem with require'ing *.rbw file

Hi!

One of guys in russian ruby-ml, have a problem with 1.8.
When he tryies to load a library from subdirectory with .rbw extension,
everything goes find, and it’s loaded, but when he require’s it with the same
path, it says
ftp.rbw:3:in `require’: No such file to load – lib/log.rbw (LoadError)
from ftp.rbw:3
I now that there is no point to use rbw extension for libraries, but anyway is
this expected behavior or just a bug?
If it’s not a bug, then why load’ing goes fine?

···


sdmitry -=- Dmitry V. Sabanin
MuraveyLabs.

Hi,

When he tryies to load a library from subdirectory with .rbw extension,
everything goes find, and it’s loaded, but when he require’s it with the same
path, it says
ftp.rbw:3:in `require’: No such file to load – lib/log.rbw (LoadError)
from ftp.rbw:3
I now that there is no point to use rbw extension for libraries, but anyway is
this expected behavior or just a bug?

Expected behavior.

If it’s not a bug, then why load’ing goes fine?

require' appends suffix .rb or .so if the name doesn't end with them, but load’ doesn’t.

···

At Wed, 23 Jul 2003 01:12:21 +0900, Dmitry V. Sabanin wrote:


Nobu Nakada

Thanx, didn’t know that, now i do :slight_smile:

···

On Wednesday 23 July 2003 11:38, nobu.nokada@softhome.net wrote:

Hi,

At Wed, 23 Jul 2003 01:12:21 +0900, > > Dmitry V. Sabanin wrote:

When he tryies to load a library from subdirectory with .rbw extension,
everything goes find, and it’s loaded, but when he require’s it with the
same path, it says
ftp.rbw:3:in `require’: No such file to load – lib/log.rbw (LoadError)
from ftp.rbw:3
I now that there is no point to use rbw extension for libraries, but
anyway is this expected behavior or just a bug?

Expected behavior.

If it’s not a bug, then why load’ing goes fine?

require' appends suffix .rb or .so if the name doesn't end with them, but load’ doesn’t.

sdmitry -=- Dmitry V. Sabanin
MuraveyLabs.