[#13273] Ruby anywhere — "NAKAMURA, Hiroshi" <nakahiro@...>

なひです.rubyistモード.

262 messages 1999/04/01
[#13305] Re: Ruby anywhere — "NAKAMURA, Hiroshi" <nakahiro@...> 1999/04/05

なひです.

[#13308] Re: Ruby anywhere — "NAKAMURA, Hiroshi" <nakahiro@...> 1999/04/05

なひです.まったく何書いてんだか... > 自分 ^^;

[#13309] Re: Ruby anywhere — 中村暁史 <anakamur@...> 1999/04/05

[#13310] iterator for Dummies( was Re: Ruby anywhere ) — "NAKAMURA, Hiroshi" <nakahiro@...> 1999/04/05

なひです.もちろん「Dummy」なのは私です.^^;

[#13313] Re: iterator for Dummies( was Re: Ruby anywhere ) — Shugo Maeda <shugo@...> 1999/04/05

前田です。

[#13314] Re: iterator for Dummies( was Re: Ruby anywhere ) — hisanori@... 1999/04/06

松尾です。

[#13317] Re: iterator for Dummies( was Re: Ruby anywhere ) — "NAKAMURA, Hiroshi" <nakahiro@...> 1999/04/06

なひです.

[#13330] Re: iterator for Dummies( was Re: Ruby anywhere ) — Wakou Aoyama <wakou@...> 1999/04/06

青山です。

[#13363] Re: iterator for Dummies( was Re: Ruby anywhere ) — "NAKAMURA, Hiroshi" <nakahiro@...> 1999/04/06

なひです.

[#13367] Re: iterator for Dummies( was Re: Ruby anywhere ) — Wakou Aoyama <wakou@...> 1999/04/06

青山です。

[#13312] Re: Ruby anywhere — Inaba Hiroto <inaba@...> 1999/04/05

稲葉です。

[#13371] Re: Ruby and LISP ( was Re: Ruby anywhere ) — takagi@... (TAKAGI, Hiromitsu) 1999/04/06

> > > 「call-by-referenceで」もちょっと言葉が違うような。

[#13377] Re: Ruby and LISP ( was Re: Ruby anywhere ) — Shin-ichiro Hara <sinara@...> 1999/04/07

原です。

[#13378] Re: Ruby and LISP ( was Re: Ruby anywhere ) — Shugo Maeda <shugo@...> 1999/04/07

前田です。

[#13380] Re: Ruby and LISP ( was Re: Ruby anywhere ) — Shin-ichiro Hara <sinara@...> 1999/04/07

原です。

[#13390] Re: Ruby and LISP ( was Re: Ruby anywhere ) — Wakou Aoyama <wakou@...> 1999/04/07

青山です。

[#13398] Re: Ruby and LISP ( was Re: Ruby anywhere ) — Shin-ichiro Hara <sinara@...> 1999/04/07

原です。

[#13399] constant/immutable(Re: Ruby and LISP) — Shugo Maeda <shugo@...> 1999/04/07

前田です。

[#13400] Re: constant/immutable(Re: Ruby and LISP) — 中村暁史 <anakamur@...> 1999/04/07

[#13474] Re: Ruby and LISP ( was Re: Ruby anywhere ) — takagi@... (TAKAGI, Hiromitsu) 1999/04/08

Shugo Maeda <shugo@netlab.co.jp> writes:

[#13490] Re: Ruby and LISP ( was Re: Ruby anywhere ) — Shugo Maeda <shugo@...> 1999/04/08

前田です。

[#13496] What is Object in Ruby? (Re: Ruby and LISP) — Shin-ichiro Hara <sinara@...> 1999/04/08

原です。

[#13800] Re: What is Object in Ruby? (Re: Ruby and LISP) — Shin-ichiro Hara <sinara@...> 1999/04/16

原です。

[#13805] Re: What is Object in Ruby? (Re: Ruby and LISP) — gotoken@... (GOTO Kentaro) 1999/04/16

ごとけんです

[#13808] Re: What is Object in Ruby? (Re: Ruby and LISP) — Shin-ichiro Hara <sinara@...> 1999/04/16

原です。

[#13816] Re: What is Object in Ruby? (Re: Ruby and LISP) — Wakou Aoyama <wakou@...> 1999/04/16

青山です。

[#13824] Re: What is Object in Ruby? (Re: Ruby and LISP) — Shin-ichiro Hara <sinara@...> 1999/04/16

原です。

[#13830] Re: What is Object in Ruby? (Re: Ruby and LISP) — Wakou Aoyama <wakou@...> 1999/04/16

青山です。

[#13839] Re: What is Object in Ruby? (Re: Ruby and LISP) — Wakou Aoyama <wakou@...> 1999/04/17

青山です。

[#13842] Re: What is Object in Ruby? (Re: Ruby and LISP) — Shin-ichiro Hara <sinara@...> 1999/04/17

原です。

[#13856] Re: What is Object in Ruby? (Re: Ruby and LISP) — gotoken@... (GOTO Kentaro) 1999/04/18

ごとけんです

[#13872] Re: What is Object in Ruby? (Re: Ruby and LISP) — Shin-ichiro Hara <sinara@...> 1999/04/19

原です。

[#13880] Re: What is Object in Ruby? (Re: Ruby and LISP) — gotoken@... (GOTO Kentaro) 1999/04/19

ごとけんです

[#13883] destructive methods (Re: Re: What is Object in Ruby?) — matz@... (Yukihiro Matsumoto) 1999/04/19

[#13621] Integer[num] (Re: Ruby and LISP) — gotoken@... (GOTO Kentaro) 1999/04/12

ごとけんです

[#13622] Re: Integer[num] (Re: Ruby and LISP) — Shugo Maeda <shugo@...> 1999/04/12

前田です。

[#13624] Re: Integer[num] (Re: Ruby and LISP) — gotoken@... (GOTO Kentaro) 1999/04/12

ごとけんです

[#13630] Re: Integer[num] (Re: Ruby and LISP) — Shugo Maeda <shugo@...> 1999/04/12

前田です。

[#13675] Re: Integer[num] (Re: Ruby and LISP) — gotoken@... (GOTO Kentaro) 1999/04/13

ごとけんです

[#13677] Re: Integer[num] (Re: Ruby and LISP) — 中村暁史 <anakamur@...> 1999/04/13

[#13690] Flyweight (Re: Integer[num]) — gotoken@... (GOTO Kentaro) 1999/04/13

ごとけんです

[#23715] Re: Flyweight (Re: Integer[num]) — Masatoshi SEKI <m_seki@...> 2000/07/05

[#23718] context switch during finalizer(Re: Re: Flyweight) — matz@... (Yukihiro Matsumoto) 2000/07/06

まつもと ゆきひろです

[#23727] Re: context switch during finalizer(Re: Re: Flyweight) — Masatoshi SEKI <m_seki@...> 2000/07/06

[#13516] Re: Ruby and LISP ( was Re: Ruby anywhere ) — takagi@... (TAKAGI, Hiromitsu) 1999/04/08

Shugo Maeda <shugo@netlab.co.jp> writes:

[#13526] Re: Ruby and LISP ( was Re: Ruby anywhere ) — Shugo Maeda <shugo@...> 1999/04/09

前田です。

[#13568] Re: Ruby and LISP ( was Re: Ruby anywhere ) — takagi@... (TAKAGI, Hiromitsu) 1999/04/09

Shugo Maeda <shugo@netlab.co.jp> writes:

[#13383] — Inaba Hiroto <inaba@...>

稲葉です.

18 messages 1999/04/07
[#13422] Re: — kjana@... (YANAGAWA Kazuhisa) 1999/04/07

In message <9904070229.AA11857@tux0017.sdd.tokyo-sc.toshiba.co.jp>

[#13435] What is `binding' (was Re: Ruby and LISP) — Inaba Hiroto <inaba@...> 1999/04/08

稲葉です。これも出しなおしです.

[#13502] Re: Ruby and LISP ( was Re: Ruby anywhere ) — "豊福" <toyofuku@...>

豊福@パパイヤです。

16 messages 1999/04/08

[#13644] bbs — kikutani@...

rubyで書かれたWebの掲示板てありましたっけ?

31 messages 1999/04/12
[#13656] Re: bbs — TADA Tadashi <sho@...> 1999/04/13

初めて投稿します。多田@S.P.C.です。

[#13657] Re: bbs — kikutani@... 1999/04/13

On Tue, 13 Apr 1999 11:16:47 +0900,

[#13663] Re: bbs — hisanori@... 1999/04/13

松尾です。

[#13867] Re: What is Object in Ruby? (Re: Ruby and LISP) — toyofuku@...

豊福@パパイヤです。

15 messages 1999/04/19
[#13876] Re: What is Object in Ruby? (Re: Ruby and LISP) — Wakou Aoyama <wakou@...> 1999/04/19

青山です。

[#13903] timer — hisanori@...

松尾です。

24 messages 1999/04/20
[#13905] Re: timer — matz@... (Yukihiro Matsumoto) 1999/04/20

まつもと ゆきひろです

[#13910] Re: timer — hisanori@... 1999/04/20

松尾です.

[#13911] Thread GC (Re: Re: timer) — matz@... (Yukihiro Matsumoto) 1999/04/20

まつもと ゆきひろです

[#13920] Re: Thread GC (Re: Re: timer) — hisanori@... 1999/04/20

松尾です.

[#13924] Re: Thread GC (Re: Re: timer) — matz@... (Yukihiro Matsumoto) 1999/04/20

まつもと ゆきひろです

[#14037] TMail について — 民斗 <tommy@...>

民斗です。

38 messages 1999/04/24
[#14082] Re: TMail について — Minero Aoki <aamine@...> 1999/04/27

あおきです。報告ありがとうございます。

[#14088] Re: TMail について — 民斗 <tommy@...> 1999/04/28

民斗です。

[#14090] Re: TMail について — WATANABE Hirofumi <watanabe@...> 1999/04/28

わたなべです.

[#14092] Re: TMail について — Minero Aoki <aamine@...> 1999/04/28

あおきです。

[#14095] Re: TMail について — WATANABE Hirofumi <eban@...> 1999/04/29

わたなべです.

[#14096] Re: TMail について — kikutani@... 1999/04/30

In ruby-list, you wrote:

[#14099] Re: TMail について — matz@... (Yukihiro Matsumoto) 1999/04/30

まつもと ゆきひろです

[ruby-list:13872] Re: What is Object in Ruby? (Re: Ruby and LISP)

From: Shin-ichiro Hara <sinara@...>
Date: 1999-04-19 07:18:33 UTC
List: ruby-list #13872
原です。

話があっちこっち飛んでますが、一応 goto でなく callcc している
つもりです。(でも抜けちゃうこともある。:-))

In message "[ruby-list:13856] Re: What is Object in Ruby? (Re: Ruby and LISP)"
    on 99/04/18, GOTO Kentaro <gotoken@math.sci.hokudai.ac.jp> writes:
|
|ごとけんです
|
|# 僕は「破壊的」という言葉が定義できるかという点に興味を
|# もって参加しています。

私ももちろんその事にこだわっています。

|>(1)変数の束縛
|>
|>var = "obj" とするとき、変数はオブジェクト "obj" に「束縛
|>された」といいます。逆にいえば、オブジェクト "obj" は変数
|>var を束縛する。さらに foo = var とすると、foo も "obj" に
|>束縛されます。どちらの = も Ruby では「代入」呼ばれます。
|>(2つの = に区別があるかどうかの判断は保留。)
|
|「評価」という言葉を導入すれば区別なく使えると思います。

「評価」の事を意識して書きました。ただ評価した結果が参照なの
かオブジェクトなのかという問題はえーと、、、

|>後、式を評価した「値」という言葉をオブジェクトへの「参照」と
|>とるか、オブジェクトそのものととるかという大問題も残っていま
|>す。
|
|評価の結果は常にオブジェクトであるという表現には間違いは
|ないですよね。だとすれば参照という言葉をわざわざ使う必要
|もないかとも思います。

そこの所はやはりちょっと揉めるんじゃないですか?なにせ
戻ってきたのがオブジェクトだと言ってもどこまでが戻って
きたのか?オブジェクトの*先頭部分だけ*という考えは、
「参照が戻ってきた」というのとほとんど同じですよね。

最初、複合オブジェクトが*根こそぎ*戻ってきたという考
えていいじゃないかと思ったのだけど、*根こそぎ*の定義
がまだうまくいってないわけです。ごとけんさんはその定義
はできない、すべきでないという意見ですよね。

#とにかくオブジェクトが戻ってきた。もう何も聞かないで
#くれ、という態度もいいかもしれない。:-)


|また、変数のスコープにも触れた方がよいと思います。

変数と変数名を分けて解説しようかと思っていました。

(7)変数と変数名

  同じ変数名でも異なる変数を表現することがあります。一つの
  変数名が一つの変数を表現する範囲を「スコープ」といいます。

かなり不完全な(揉めそうな?)スコープの定義ですが。


|>(3)オブジェクトがオブジェクト参照すること
|>
|>オブジェクト obj1 のあるインスタンス変数 @var が他のオブジェ
|>クト obj2 を参照しているときは、「オブジェクト obj1 は obj2
|>を(@var を通して)参照している」と言って良いでしょう。
|>(他の場合にもオブジェクト同士の参照関係があるかについては議
|>論中。)
|
|インスタンス引数をもたない組み込みのクラスに関してはどう
|なのでしょうか??  組み込みクラスとユーザー定義クラスで区
|別を設けない方が望ましいと思います。

私もそう思っています。素朴に Hash, Array などに基本的な
参照関係を定義して、さらに「+ユーザー定義クラスのイン
スタンス変数による参照」で帰納的に定義を広げるだけでも
ある程度の成果はありそうです。


|>いまのところこのぐらいです。で、束縛はかなりテクニカルターム
|>であって定義の問題ですが、日常語に近い「参照」あるいは「参照
|>する」という言葉についてどう使うかについて議論がいろいろ出て
|>います。
|
|うーん、定義するかしないかで決着をつけるのではなく、用法
|を制限しようということですね。とすれば、自然さを追求した
|方がよいと思います。あくまで用語ではなく日本語として使う
|のであれば議論抜きで「参照している」というのを受け入れて
|もまぁよいのだけど、そういうお気楽さでよいですか??
|
|直観的な説明のための言葉でよいなら、「破壊的」や「参照」
|は受け入れられますが、それを越えてなんらかの無矛盾な用法
|を導入するのなら、ちゃんと定義された用語であることが望ま
|しいと思います。
|
|僕は定義の善し悪しを追求しようかと思っていました。参照を
|定義したくなるのは、「破壊的」を定義しようとしてたからで
|すよね、確か。だから、そっちを主眼に攻めた方が良いのでは
|ないでしょうか??  ただし破壊的か否かもクラスの実装の話で
|もあるので、言語レベルの用語としては定義できないという気
|もかなりしてます。組み込みや拡張モジュールのクラスなら、
|インスタンス変数では状態を指定できませんし。


この「言葉使い集」は前提的に今までの習慣を最小限にまとめ
たものです。ここから書き加えたり書き直したりして、ここへ
のズレとして議論ができるのではないかと思いました。本当は
きちんとした定義を書きたいのですが難しいので書けることだ
け書いているだけです。しかし、同じ言葉に複数の用法があれ
ば、意味の区別は明確にしたい。それから言葉を制限して混乱
を避けたい。

もちろん数学的にきちんとした定義(モデル)を与えたいとい
うのはその通りです。「破壊的」という言葉に関わっている意
味での「参照」をきちんと定義したい。でも難しそう。

私の目的はプラグマティカルには「人に文法を教える事」です。
例えば学生に「破壊的」という言葉の定義を簡単に教え、そこ
で、「じゃせんせーこの場合は破壊的?」とか突っ込んで来る、
突っ込んで来れる所に全部突っ込んで来るような性格の悪い学
生にすずしい顔をして答えたいわけです。(^^

In This Thread