[#19261] lstripped here-document (Re: comments and continuing strings on the next line) — nobu.nakada@...

なかだです。

29 messages 2003/01/01
[#19360] Re: lstripped here-document (Re: comments and continuing strings on the next line) — "K.Kosako" <kosako@...> 2003/01/15

nobu.nakada@nifty.ne.jpさんの

[#19361] Re: lstripped here-document (Re: comments and continuing strings on the next line) — "NAKAMURA, Hiroshi" <nakahiro@...> 2003/01/15

なひです。

[#19364] Re: lstripped here-document (Re: comments and continuing strings on the next line) — nobu.nakada@... 2003/01/17

なかだです。

[#19366] Re: lstripped here-document (Re: comments and continuing strings on the next line) — "NAKAMURA, Hiroshi" <nakahiro@...> 2003/01/17

なひです。

[#19299] [BUG] errno == 0 — Kazuhiro Yoshida <moriq@...>

もりきゅうです。win32だけかもしれません。

22 messages 2003/01/04
[#19301] Re: [BUG] errno == 0 — "U.Nakamura" <usa@...> 2003/01/04

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

[#19302] Re: [BUG] errno == 0 — "U.Nakamura" <usa@...> 2003/01/04

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

[#19303] Re: [BUG] errno == 0 — "U.Nakamura" <usa@...> 2003/01/04

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

[#19304] Re: [BUG] errno == 0 — "U.Nakamura" <usa@...> 2003/01/04

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

[#19306] Re: [BUG] errno == 0 — nobu.nakada@... 2003/01/05

なかだです。

[ruby-dev:19280] Re: ruby-1.8.0 / yield(nil)とyield()の

From: Masatoshi SEKI <m_seki@...>
Date: 2003-01-01 15:03:36 UTC
List: ruby-dev #19280
咳といいます。

> ここもそうだし、LocalJumpError のところもそうだった気がしますが、drb
> は Ruby の仕様の不安定な所に依存している気がしますね。

う。するどい。でも、わざと依存してるわけじゃないですよ。
# yield周りのところだけじゃないかな。

そういうわけでLocalJumpErrorなんです。
[ruby-dev:18453] Re: break from proc-closureの症状が発生してしまいました。

以前田中さんに書いていただいた再現スクリプトで示すと次のようになります。
break, retryとも例外が発生しません。

# break
def f(&block)
   Thread.start {
     p [:a, [1].collect(&block)]
   }.join
   p :f
end
p [:b, f { break }]

# 1.6.7
000.rb:3:in `f': break from proc-closure (LocalJumpError)
         from 000.rb:2:in `join'
         from 000.rb:2:in `f'
         from 000.rb:7

# 1.8
[:a, nil]
:f
[:b, nil]


今回はさらにretryも例外になりません。

# retry
def f(&block)
   Thread.start {
     p [:a, [1].collect(&block)]
   }.join
   p :f
end
p [:b, f { retry }]

# 1.6.7
000.rb:3:in `f': retry from proc-closure (LocalJumpError)
         from 000.rb:2:in `join'
         from 000.rb:2:in `f'
         from 000.rb:7
# 1.8
# 無限ループで戻ってこない。



In This Thread