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