Passing Function as an argument to another Function

kdevel kdevel at vogtner.de
Mon Dec 4 20:02:30 UTC 2017


On Monday, 4 December 2017 at 11:05:22 UTC, Vino wrote:
> On Monday, 4 December 2017 at 10:46:03 UTC, rikki cattermole 
> wrote:

> FunTest.d(52): Error: template FunTest.ptProcessFiles cannot 
> deduce function from argument types !()(string, 
> Array!(Tuple!(string, string)) function(string FFs,
>  string Step, int DirAged), File, File, string, int), 
> candidates are:
> FunTest.d(24):        FunTest.ptProcessFiles()(Array!string 
> Dirlst, Array!(Tuple!(string, string)) function(string, string, 
> int) coRoutine, File logF, File logE
> , string Step, int Aged)
> Failed: ["dmd", "-v", "-o-", "FunTest.d", "-I."]

Why do I get a different error?:

.../linux/bin64/../../src/phobos/std/datetime.d(106): Error: 
module std.datetime from file 
.../linux/bin64/../../src/phobos/std/datetime.d conflicts with 
package name datetime


More information about the Digitalmars-d-learn mailing list