Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

ruby-dev summary 26011-26089

0 views
Skip to first unread message

SASADA Koichi

unread,
May 6, 2005, 4:00:09 AM5/6/05
to
Hi,

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

[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-summary.html

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


Ara.T....@noaa.gov

unread,
May 6, 2005, 9:45:47 AM5/6/05
to
On Fri, 6 May 2005, SASADA Koichi wrote:

> Hi,
>
> This is ruby-dev summary 26011-26089.
> http://www.ruby-talk.org/ruby/ruby-dev/26001-26200.shtml
>
> [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.

then does $0 too? otherwise

if $0 == __FILE__
...
end

will fail


-a
--
===============================================================================
| email :: ara [dot] t [dot] howard [at] noaa [dot] gov
| phone :: 303.497.6469
| renunciation is not getting rid of the things of this world, but accepting
| that they pass away. --aitken roshi
===============================================================================

nobu....@softhome.net

unread,
May 9, 2005, 11:12:08 AM5/9/05
to
Hi,

At Fri, 6 May 2005 23:05:16 +0900,
Ara.T....@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


0 new messages