Re: Weird error on nested map

2010-06-27 Thread Philippe Sigaud
On Sun, Jun 27, 2010 at 10:11, Simen kjaeraas wrote: > auto fn1 = ( string s ) { >return s; > }; > > auto fn2 = ( string s ) { >return map!fn1( [""] ); > }; > > auto idirs = map!fn2( [""] ); > > The above code gives the following errors: > foo.d(114): Error: struct foo.main.Map!(fn

Weird error on nested map

2010-06-27 Thread Simen kjaeraas
auto fn1 = ( string s ) { return s; }; auto fn2 = ( string s ) { return map!fn1( [""] ); }; auto idirs = map!fn2( [""] ); The above code gives the following errors: foo.d(114): Error: struct foo.main.Map!(fn2,string[]).Map inner struct Map cannot be a field foo.d(114): Error: st