Issue

bobef bobef at nosmap-abv.bg
Thu Jul 17 22:15:18 PDT 2008


Jarrett Billingsley Wrote:

> "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. 
> 
> 

Obviously. And why is that? If it is working for one primitive type I see no reason it shouldn't work for the rest.



More information about the Digitalmars-d-bugs mailing list