Issue

Jarrett Billingsley kb3ctd2 at yahoo.com
Thu Jul 17 12:54:35 PDT 2008


"bobef" <bobef at nosmap-abv.bg> wrote in message 
news:g5o6c5$2is4$1 at digitalmars.com...
> DMD 1.033:
>
> import tango.io.Stdout;
>
> void a(void delegate() dg)
> {
> dg();
> }
>
> void b(char[][] bb)
> {
> Stdout(bb);
> }
>
> void main(char[][] argv)
> {
> //why:
> {Stdout(argv);}.a(); //this is not working
> argv.b(); //and this is working?
> }

Because the "a.f() == f(a)" only works for arrays and associative arrays and 
not delegates. 




More information about the Digitalmars-d-bugs mailing list