[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

ruby-dev summary 26011-26089

SASADA Koichi

5/6/2005 8:00:00 AM

Hi,

This is ruby-dev summary 26011-26089.
http://www.ruby-talk.org/ruby/ruby-dev/26001-2...

[ruby-dev:26046] irb 0.9.5 release

Keiju ISHITSUKA released irb 0.95 (added to CVS/HEAD).
Some changes are applied around "save_history". If you use it,
please check it.

If you write following configuration in ".irbrc", irb loads
history data at start time and save it at exit time:

IRB.conf[:SAVE_HISTORY] = Number_of_Saved_History

And if you type following expression during an irb session,
irb loads history data at once and saves them at the end of
the session

conf.save_history = Number_of_Saved_History


[ruby-dev:26079] absolute path in $LOADED_FEATURES

Nobu.Nakada fixed __FILE__ to use absolute path.


[ruby-dev:26089] mkmf C++ support

Nobu Nakada added a support for C++ source codes to
mkmf package.


ruby-dev summary index: http://i.loveruby.net/en/ruby-dev-su...

Regards,
--
// SASADA Koichi at atdot dot net
//


2 Answers

Ara.T.Howard

5/6/2005 1:46:00 PM

0

nobu.nokada

5/9/2005 3:12:00 PM

0

Hi,

At Fri, 6 May 2005 23:05:16 +0900,
Ara.T.Howard@noaa.gov wrote in [ruby-talk:141405]:
> > [ruby-dev:26079] absolute path in $LOADED_FEATURES
> >
> > Nobu.Nakada fixed __FILE__ to use absolute path.
>
> then does $0 too? otherwise
>
> if $0 == __FILE__
> ...
> end
>
> will fail

No, it is only for `require'd files.

$ echo 'p $0, __FILE__' > x.rb

$ ruby x.rb
"x.rb"
"x.rb"

$ ruby -e 'load("x.rb")'
"-e"
"./x.rb"

$ ruby -e 'require("x.rb")'
"-e"
"/home/nakada/src/ruby/trunk/x.rb"

$ ruby -rx -ep
"-e"
"/home/nakada/src/ruby/trunk/x.rb"

--
Nobu Nakada