[#42945] [Ruby 1.8-Bug#4231][Open] configure.bat --with-winsock2 が socket/extconf.rbに効いていない — Masahiro Kitajima <redmine@...>

Bug #4231: configure.bat --with-winsock2 が socket/extconf.rbに効いていない

8 messages 2011/01/05

[#43027] [Ruby 1.9-Feature#4280][Assigned] SJIS should be an alias of Windows-31J, not of Shift_JIS — Usaku NAKAMURA <redmine@...>

Feature #4280: SJIS should be an alias of Windows-31J, not of Shift_JIS

13 messages 2011/01/14
[#43030] [Ruby 1.9-Feature#4280] SJIS should be an alias of Windows-31J, not of Shift_JIS — Motohiro KOSAKI <redmine@...> 2011/01/14

チケット #4280 が更新されました。 (by Motohiro KOSAKI)

[#43031] Re: [Ruby 1.9-Feature#4280] SJIS should be an alias of Windows-31J, not of Shift_JIS — "U.Nakamura" <usa@...> 2011/01/14

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

[#43033] Re: [Ruby 1.9-Feature#4280] SJIS should be an alias of Windows-31J, not of Shift_JIS — KOSAKI Motohiro <kosaki.motohiro@...> 2011/01/14

2011年1月14日16:35 U.Nakamura <usa@garbagecollect.jp>:

[#43039] ext/openssl development repository — Hiroshi Nakamura <nakahiro@...>

W3J1YnktY29yZTozNDQxNl3jga7ml6XmnKzlkJHjgZHniYjjgafjgZnjgIIKCuacgOi/kU1hcnRp

21 messages 2011/01/14
[#43040] Re: ext/openssl development repository — "U.Nakamura" <usa@...> 2011/01/14

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

[#43041] Re: ext/openssl development repository — Yusuke ENDOH <mame@...> 2011/01/14

遠藤です。

[#43053] Re: ext/openssl development repository — Hiroshi Nakamura <nakahiro@...> 2011/01/17

MjAxMS8xLzE0IFl1c3VrZSBFTkRPSCA8bWFtZUB0c2cubmUuanA+Ogo+Pj4gwqAgwqAgwqAgwqAg

[#43092] pthread_cond を用いたConditionVariable — keiju@... (Keiju ISHITSUKA)

けいじゅ@いしつかです.

15 messages 2011/01/24

[ruby-dev:42942] Re: Proc#callの別名の提案

From: Yasushi Ando <andyjpn@...>
Date: 2011-01-05 03:01:25 UTC
List: ruby-dev #42942
あんどうと申します。

以前考えたんですが、メソッドが見つからなくて代わりに同名の変数があるときにはその変数のcallメソッドを呼ぶというのは駄目でしょうか?もちろん非互換も甚だしいのですぐにということではなく将来的にRuby2.0辺りで、ということなんですが・・・。

ちなみにRubiniusでは次のようにして無理やりそれっぽいものを実現できました。

| class Object
|   alias method_missing_without_call method_missing
|   def method_missing(name, *args, &block)
|     binding_of_sender = Binding.setup(Rubinius::VariableScope.of_sender,
|       Rubinius::CompiledMethod.of_sender, Rubinius::StaticScope.of_sender)
|     obj = eval(name.to_s, binding_of_sender)
|     if self == eval('self', binding_of_sender) and obj and
obj.respond_to?('call')
|       obj.call(*args, &block)
|     else
|       method_missing_without_call(name, *args, &block)
|     end
|   end
| end
|
| fun = lambda {print 'Hello, '}
| fun2 = lambda {|msg| print msg}
|
| fun()
| fun2 'world!'
| #=> Hello, world!



2011/1/5 Shota Fukumori (sora_h) <sorah@tubusu.net>:
> sora_hです。
>
> 2011/1/5  <hattorihiroaki1@mail.goo.ne.jp>:
>> Procオブジェクトのことです。私自身が関数型言語とオブジェクト指向言語の融合に興味があったので
>> そういう言葉をつくってしまいました。
> なるほど。
>
>> これは知りませんでした。コードまで示していただきましてありがとうございます。
> いえいえ。
>
>> いま自分で言語の設計の(まねごとですが)しているのですが、今となってはProc#[]でも悪くないと思えるようになりました。
>> ただ、Rubyの括弧なしの呼び出しがとてもすばらしいと思うので、欲がでて提案してしまいました。
> 卜部さんやまつもとさんがおっしゃられているように、提案することは良いかと思います。
> 悪いことではないと思うので。
>
> --
> Shota Fukumori a.k.a. @sora_h - http://codnote.net/
>
>



-- 
ANDO Yasushi
- andyjpn@gmail.com
- http://d.hatena.ne.jp/technohippy/
- http://twitter.com/technohippy

In This Thread