[#38447] 複素数を考慮したVectorクラス — TANAKA Kenta <c30318@...>
みなさん、はじめまして。Ruby歴(=OOP歴)1週間の田中と申します。
7 messages
2003/10/01
[#38465] diff library — Koji Arai <JCA02266@...>
新井です。
6 messages
2003/10/05
[#38470] ruby-dev summary 21403-21530 (draft) — Minero Aoki <aamine@...>
青木です。
25 messages
2003/10/07
[#38475] Re: ruby-dev summary 21403-21530 (draft)
— maili31s@... (SugHimsi==SUGIHARA Hiroshi)
2003/10/07
すぎむし。
[#38480] Re: ruby-dev summary 21403-21530 (draft)
— Minero Aoki <aamine@...>
2003/10/08
青木です。
[#38481] marshal_dump (was Re: )
— m_seki@...
2003/10/08
[#38484] Re: marshal_dump (was Re: )
— matz@... (Yukihiro Matsumoto)
2003/10/09
まつもと ゆきひろです
[#38486] Re: marshal_dump (was Re: )
— Masatoshi Seki <m_seki@...>
2003/10/09
咳といいます
[#38487] Re: marshal_dump (was Re: )
— matz@... (Yukihiro Matsumoto)
2003/10/09
まつもと ゆきひろです
[#38471] SQLite - Ruby/DBI — Kenji Machida <k-machida@...>
はじめまして。まちだと申します。
10 messages
2003/10/07
[#38485] プログラム設計方法 — Satoshi Osabe <s-osabe@...>
長部と申します。
6 messages
2003/10/09
[#38489] exit status on exit! — YANAGAWA Kazuhisa <kjana@...4lab.to>
<http://www.unixuser.org/~ysjj/diary/?200310a&to=200310082#200310082>
29 messages
2003/10/09
[#38490] Re: exit status on exit!
— Koji Arai <JCA02266@...>
2003/10/09
新井です。
[#38503] Re: exit status on exit!
— YANAGAWA Kazuhisa <kjana@...4lab.to>
2003/10/10
In Message-Id: <20031010.082218.74733862.JCA02266@nifty.ne.jp>
[#38505] Re: exit status on exit!
— Koji Arai <JCA02266@...>
2003/10/10
新井です。
[#38507] Re: exit status on exit!
— matz@... (Yukihiro Matsumoto)
2003/10/11
まつもと ゆきひろです
[#38514] Re: exit status on exit!
— YANAGAWA Kazuhisa <kjana@...4lab.to>
2003/10/11
In Message-Id: <1065883639.405037.23137.nullmailer@picachu.netlab.jp>
[#38515] Re: exit status on exit!
— WATANABE Hirofumi <eban@...>
2003/10/11
わたなべです。
[#38520] Re: exit status on exit!
— matz@... (Yukihiro Matsumoto)
2003/10/12
まつもと ゆきひろです
[#38521] Re: exit status on exit!
— nobu.nakada@...
2003/10/12
なかだです。
[#38532] Re: exit status on exit!
— matz@... (Yukihiro Matsumoto)
2003/10/13
まつもと ゆきひろです
[#38556] Re: exit status on exit!
— nobu.nakada@...
2003/10/14
なかだです。
[#38558] Re: exit status on exit!
— matz@... (Yukihiro Matsumoto)
2003/10/14
まつもと ゆきひろです
[#38560] Re: exit status on exit!
— nobu.nakada@...
2003/10/14
なかだです。
[#38561] Re: exit status on exit!
— matz@... (Yukihiro Matsumoto)
2003/10/14
まつもと ゆきひろです
[#38562] Re: exit status on exit!
— matz@... (Yukihiro Matsumoto)
2003/10/14
まつもと ゆきひろです
[#38566] Re: exit status on exit!
— nobu.nakada@...
2003/10/14
なかだです。
[#38522] Re: exit status on exit!
— Takahiro Kambe <taca@...>
2003/10/12
In message <20031011.003250.41649947.JCA02266@nifty.ne.jp>
[#38499] Amrita と mod_ruby の相性は ? — 山本 達也 <rcn@...>
山本(rcn)@ntt〜kddi です。こんにちは。
5 messages
2003/10/10
[#38510] ロックしたファイルの書き換え — Akimichi Tatsukawa <akimichi@...>
ruby-listの皆さん、こんにちは。立川察理と申します。
8 messages
2003/10/11
[#38524] Object#instance_eval and private — Masao Mutoh <mutoh@...>
むとうです。
6 messages
2003/10/12
[#38527] ruby-dev summary 21531-21607 (draft) — Kazuo Saito <ksaito@...>
斉藤です。
7 messages
2003/10/13
[#38580] ruby-mysql-0.2.1でのwarning — Takashi Kanai <kanai@...4u.or.jp>
こんにちは、金井です。
11 messages
2003/10/16
[#38581] Re: ruby-mysql-0.2.1でのwarning
— Takashi Kanai <kanai@...4u.or.jp>
2003/10/16
金井です。
[#38582] ruby-mysql-0.2.1でlocalhostがエラー
— Takashi Kanai <kanai@...4u.or.jp>
2003/10/16
こんにちは、金井です。
[#38590] mod_rubyでのSTDOUTについて — 堀川 久 <vzw00011@...>
こんにちは。
10 messages
2003/10/16
[#38607] [ANN] ReFe 0.8.0 — Minero Aoki <aamine@...>
青木です。
4 messages
2003/10/17
[#38614] cygwin の uconv で Segmentation fault — Beyond <beyond@...>
9 messages
2003/10/20
[#38619] dl and win32 API call — arton <artonx@...>
artonです。
5 messages
2003/10/20
[#38621] ruby-dev summary 21608-21636 (draft) — Masayoshi Takahashi <maki@...>
高橋です。
5 messages
2003/10/20
[#38636] gethostbyname — Takeshi Honda <moecho21@...>
お世話になります。
7 messages
2003/10/23
[#38643] C/C++ からメソッドを呼びたいのですが — phosrin <phosrin@...>
りんです。よろしくお願いします。
7 messages
2003/10/23
[#38645] snap shot の make install でエラー — Takeshi Honda <moecho21@...>
お世話になります。
1 message
2003/10/23
[#38646] install trouble of ruby 1.8 and rdtools 0.6.14 — Kominami Yasuo <NBC00224@...>
はじめまして、小南と言います。
5 messages
2003/10/23
[#38656] Ruby/Tkの終了時の挙動 — Shigeaki Kinoshita <QZT05560@...>
木下と申します。
8 messages
2003/10/25
[#38663] Re: Ruby/Tkの終了時の挙動
— Hidetoshi NAGAI <nagai@...>
2003/10/25
永井@知能.九工大です.
[#38661] 'Using the Ruby DBI Module' 日本語訳 — KUBO Takehiro <kubo@...>
久保@茅ヶ崎市です。
1 message
2003/10/25
[#38662] 空行で別れたデータから特定の文字を含むデータを削除したい —
竹島と申します。
5 messages
2003/10/25
[#38689] cgi.params のデフォルト値 — Kazuhiro Yoshida <moriq@...>
もりきゅうです。
6 messages
2003/10/28
[#38701] space before argument parentheses warning — Toshi Isogai <tisogai@...>
先日 ruby 1.8 を コンパイルして、以前から 1.6.7 使っていたスクリプトを走らせた
4 messages
2003/10/30
[#38706] ruby-1.8.1でenctypeのときのcgi.params — Takashi Kanai <kanai@...4u.or.jp>
こんにちは、金井です。
6 messages
2003/10/31
[ruby-list:38470] ruby-dev summary 21403-21530 (draft)
From:
Minero Aoki <aamine@...>
Date:
2003-10-07 08:41:20 UTC
List:
ruby-list #38470
青木です。
ruby-dev summary は何やってんのかよくわからん、という声がある
ようなので、試験的に ruby-list でいつもの作業をやってみようと
思います。ここで流す分は草稿なので、間違っているところや、英語と
しておかしいところなどは指摘してくださると助かります。
では以下 ruby-dev summary の今週分 21403-21530 です。
今週はなんとなく日本語の意訳を付けてみました。
[ruby-dev:21416] return value of #warn
-W0 のとき warn が不定値を返すバグの報告。
そこから派生して warn の返り値の話になり、
結果として常に nil を返すことになった。
In current 1.8, #warn returns its argument. U.Nakamura
reported that #warn returns undetermined value on -W0.
This bug is fixed and return value is changed to nil.
[ruby-dev:21176] marshalling ivtbl of Time
Marshal の手続きに関する話題。
少し前の 1.8 では _dump か marshal_dump が定義されているとイン
スタンス変数はダンプされなかった。一方 Time には _dump が定義
されているので、Time オブジェクトのインスタンス変数はダンプさ
れないことになる。
In old 1.8, ruby did not dump instance variables if #_dump or
#marshal_dump is defined. Almost all built-in classes do not
have #_dump/#marshal_dump, but Time has #_dump method. So
instance variables of Time objects do not dumped. e.g.
% ruby -e '
t = Time.now
t.instance_eval { @ivar = 3 }
Marshal.load(Marshal.dump(t)).instance_eval { p @ivar }
'
nil
そこで _dump や marshal_dump が定義されていてもインスタンス変数
は自動的にダンプするように変更された。しかしそれだけでは、IO の
ようにシリアライズ不可能なオブジェクトがインスタンス変数に入っ
ているとエラーになってしまう。そこで、
* _dump か marshal_dump が定義されており
* インスタンス変数にシリアライズ不可能なオブジェクトが代入されている
場合はエラーではなく無視するようになった。詳しくは以下の実行例
を参照のこと。
Matz decided to dump/restore instance variables automatically,
even if #_dump/#marshal_dump is defined. But it causes needless
errors when trying to dump unserializable objects, e.g. IO.
Then if an object has #_dump/#marshal_dump and meets unserializable
objects, ruby does not raise exception, just ignore it. See
following example for changes.
% cat marshal_io
class C
def initialize
@io = STDIN
@n = 99
end
def marshal_dump
3
end
def marshal_load( obj )
@io = STDIN
end
end
c = C.new
p c
p Marshal.load(Marshal.dump(c))
% ruby-1.8.0 marshal_io
#<C:0x401ace1c @io=#<IO:0x401b3280>, @n=99>
#<C:0x401accc8 @io=#<IO:0x401b3280>> # @n is not restored
% ruby-HEAD marshal_io
#<C:0x40270e1c @n=99, @io=#<IO:0x40277294>>
#<C:0x40270cc8 @n=99, @io=#<IO:0x40277294>>
[ruby-dev:21498] {test,lib}/ChangeLog?
現在は test/ や lib/ のログも全部まとめてトップの ChangeLog に
書いているが、これを分けるべきかどうかについて。まつもとさん・
新井さん・なひさん・青木はこのまままとめる派。(いまのとこ
バラバラ派はなし)
We are writing all change logs in one file now, ChangeLog. But
there are other schemes to store change log e.g. one file per
one directory. NAKAMURA Hiroshi asked where we should write a
log of test scripts.
Matz replied he prefers to use one big ChangeLog file.
[ruby-dev:21508] eval BEGIN/END at runtime
eval 中での BEGIN/END ブロックの仕様についての質問。
BEGIN が eval の最初に実行されるのに対して END は実行全体の
最後の実行されるが、これが適切であるかどうか。
→ 仕様です。
NAKAMURA Hiroshi asked about feature of BEGIN/END block.
See following script:
eval 'BEGIN { puts "begin" }
END { puts "end" }'
puts '----'
Ruby prints "begin", "----", then "end". So, when we execute
BEGIN/END in eval, BEGIN block is executed at beginning of eval,
END block is executed at end of ruby process.
Matz replied this is a feature.