[#32727] require "./xxx" の「カレントディレクトリ」の意味 — Take_tk <ggb03124@...>

あるディレクトリαにあるスクリプトAに「require "./xxx"」と書いてあると、

21 messages 2001/12/03
[#32733] Re: require "./xxx" の「カレントディレクトリ」の意味 — matz@... (Yukihiro Matsumoto) 2001/12/03

まつもと ゆきひろです

[#32746] Re: require "./xxx" の「カレントディレクトリ」の意味 — Tanaka Akira <akr@...17n.org> 2001/12/04

In article <1007384829.854960.10474.nullmailer@ev.netlab.jp>,

[#32749] Re: require "./xxx" の「カレントディレクトリ」の意味 — Take_tk <ggb03124@...> 2001/12/04

たけ(tk)です。

[#32772] newdate — tadf@...

ふなばです。

108 messages 2001/12/04
[#32850] Re: newdate — Tanaka Akira <akr@...17n.org> 2001/12/10

In article <20011204234521G.tadf@kt.rim.or.jp>,

[#32855] Re: newdate — tadf@... 2001/12/10

ふなばです。

[#32859] Re: newdate — matz@... (Yukihiro Matsumoto) 2001/12/10

まつもと ゆきひろです

[#32860] Re: newdate — tadf@... 2001/12/10

ふなばです。

[#32889] Re: newdate — Tanaka Akira <akr@...17n.org> 2001/12/12

In article <20011210180612F.tadf@funaba.org>,

[#34281] Re: newdate — tadf@... 2002/03/10

ふなばです。

[#33661] when.exe の Ruby 化 (Re: newdate) — Takashi SUGA <suchowan@...> 2002/01/29

すいません。件名が変だったので、再送します。コメントをくださる方は、

[#32797] dir_config (mkmf.rb) のオプション指定の優先順位 — tamra@...

12 messages 2001/12/05
[#32798] Re: dir_config (mkmf.rb) のオプション指定の優先順位 — nobu.nakada@... 2001/12/06

なかだです。

[#32807] irb 0.8 release — keiju@... (Keiju ISHITSUKA)

けいじゅ@日本ラショナルソフトウェアです.

21 messages 2001/12/07
[#32808] Re: irb 0.8 release — rubikitch <rubikitch@...> 2001/12/07

From: keiju@rational.com (Keiju ISHITSUKA)

[#32935] Ruby256 倍本 " 界道編 " — shukaku@...

23 messages 2001/12/15
[#32963] Re: Ruby256 倍本 " 界道編 " — Shin-ichiro HARA <sinara@...> 2001/12/19

原です。

[#33014] "Walrus" on LinuxJapan — Taku Nakajima <tnakajima@...>

中島@ブレーンです。

13 messages 2001/12/24

[#33050] cgi.rb で cookie の encoding について — Beyond <beyond@...>

74 messages 2001/12/28
[#33054] Re: cgi.rb で cookie の encoding について — "U.Nakamura" <usa@...> 2001/12/28

こんにちは、なかむら(う)です。

[#33057] Re: cgi.rb で cookie の encoding について — Beyond <beyond@...> 2001/12/28

[#33059] Re: cgi.rb で cookie の encoding について — nobu.nakada@... 2001/12/28

なかだです。

[#33060] Re: cgi.rb で cookie の encoding について — Beyond <beyond@...> 2001/12/28

[#33063] Re: cgi.rb で cookie の encoding について — nobu.nakada@... 2001/12/28

なかだです。

[#33065] Re: cgi.rb で cookie の encoding について — Beyond <beyond@...> 2001/12/28

[#33062] Re: cgi.rb で cookie の encoding について — Wakou Aoyama <wakou@...> 2001/12/28

青山です。

[#33075] Re: cgi.rb で cookie の encoding について — Takahiro Kambe <taca@...> 2001/12/28

In message <20011228054515.726.qmail@localhost>

[#33078] Re: cgi.rb で cookie の encoding について — Beyond <beyond@...> 2001/12/28

[#33083] Re: cgi.rb で cookie の encoding について — Wakou Aoyama <wakou@...> 2001/12/28

青山です。

[#33090] Re: cgi.rb で cookie の encoding について — Beyond <beyond@...> 2001/12/28

[#33105] Re: cgi.rb で cookie の encoding について — Wakou Aoyama <wakou@...> 2001/12/29

青山です。

[#33120] Re: cgi.rb で cookie の encoding について — Tanaka Akira <akr@...17n.org> 2001/12/30

In article <20011229013722.1869.qmail@localhost>,

[#33124] Re: cgi.rb で cookie の encoding について — Wakou Aoyama <wakou@...> 2001/12/30

青山です。

[#33131] Re: cgi.rb で cookie の encoding について — Beyond <beyond@...> 2001/12/31

[ruby-list:32867] Re: irb 0.8 release

From: keiju@... (石塚圭樹)
Date: 2001-12-10 13:12:53 UTC
List: ruby-list #32867
けいじゅ@日本ラショナルソフトウェアです.

In [ruby-list :32865 ] the message: "[ruby-list:32865] Re: irb 0.8
release ", on Dec/10 18:35(JST) rubikitch writes:

>るびきちです。

>> しかし、inspect「が」こんな細工をするのは気持ち悪い・・・
>いっそのこと ...self-history... を表示しなくするのはどうでしょう?

(snip)

うーん. 悪くはないですが...

最後がhistoryオブジェクトかどうかで出力する/しないをきめることにしました.

# RAAもアップデートしました.

===
diff -u -r1.6 lib/irb/context.rb
--- lib/irb/context.rb	2001/12/10 05:17:16	1.6
+++ lib/irb/context.rb	2001/12/10 09:16:07
@@ -129,10 +129,10 @@
 
     attr_reader :last_value
     def set_last_value(value)
-      llv, @last_value = @last_value, value
+      @last_value = value
       @workspace.evaluate "_ = IRB.CurrentContext.last_value"
-      if @eval_history and @line_no > 1 #and !@eval_history_values.equal?(llv)
-	@eval_history_values.push @line_no - 1, llv
+      if @eval_history #and !@eval_history_values.equal?(llv)
+	@eval_history_values.push @line_no, @last_value
 	@workspace.evaluate "__ = IRB.CurrentContext.instance_eval{@eval_history_values}"
       end
       @last_value
===================================================================
RCS file: lib/irb/RCS/history.rb,v
retrieving revision 1.2
diff -u -r1.2 lib/irb/history.rb
--- lib/irb/history.rb	2001/12/10 05:18:18	1.2
+++ lib/irb/history.rb	2001/12/10 10:58:14
@@ -33,7 +33,7 @@
 	else
 	  @contents[idx][1]
 	end
-      rescue
+      rescue NameError
 	nil
       end
     end
@@ -46,13 +46,26 @@
     alias real_inspect inspect
 
     def inspect
-      @contents.collect{|no, val|
+      if @contents.empty?
+	return real_inspect
+      end
+
+      unless (last = @contents.pop)[1].equal?(self)
+	@contents.push last
+	last = nil
+      end
+      str = @contents.collect{|no, val|
 	if val.equal?(self)
 	  "#{no} ...self-history..."
 	else
 	  "#{no} #{val.inspect}"
 	end
       }.join("\n")
+      if str == ""
+	str = "Empty."
+      end
+      @contents.push last if last
+      str
     end
   end
 end
__
..............................石塚 圭樹@日本ラショナルソフトウェア...
----------------------------------->> e-mail: keiju@rational.com <<---

In This Thread