[前][次][番号順一覧][スレッド一覧][生データ]

langsmith:88

From: Shugo Maeda <shugo ruby-lang.org>
Date: Thu, 15 Jul 2004 00:04:33 +0900
Subject: [langsmith:88] Re: 強い型の言語とクロージャ

前田です。

Shugo Maeda wrote:
> たとえば、
> 
>   Bar(new delegate bool(int i, string s){
>     ...
>   });
> 
> これは、Barが要求する型からクロージャの型を推測できるので
> 
>   Bar(new delegate {
>     ...
>   });

すみません、引数の名前は必要ですね。

  Bar(new delegate (i, s) {
    ...
  });


-- 
前田 修吾

--
ML: langsmith quickml.atdot.net
使い方: http://www.atdot.net/~ko1/quickml

[前][次][番号順一覧][スレッド一覧][生データ]

        76 2004-07-13 12:42 [mogami brain.riken.g] 変更可能なclosure変数、対、static変数   
        77 2004-07-13 13:42 ┣[nobsun sampou.org   ]                                       
        78 2004-07-13 15:07 ┣[maeda-langsmith atus]                                       
        80 2004-07-13 19:58 ┃┣[mogami brain.riken.g] Re: 変更可能なclosure変数、対、sta  
        81 2004-07-14 01:52 ┃┗[shugo ruby-lang.org ] 強い型の言語とクロージャ            
        84 2004-07-14 15:02 ┃ ┣[takuo aya.or.jp     ]                                   
        86 2004-07-14 23:32 ┃ ┃┗[shugo ruby-lang.org ]                                 
        85 2004-07-14 20:52 ┃ ┗[randy mvd.biglobe.ne]                                   
        87 2004-07-14 23:59 ┃  ┗[shugo ruby-lang.org ]                                 
->      88 2004-07-15 00:04 ┃   ┣[shugo ruby-lang.org ]                               
        89 2004-07-15 01:50 ┃   ┗[nobsun sampou.org   ]                               
        90 2004-07-15 11:04 ┃    ┗[shugo ruby-lang.org ]                             
        79 2004-07-13 14:43 ┗[matz ruby-lang.org  ]