splitter string/char different behavior

SrMordred patric.dexheimer at gmail.com
Sat Sep 30 17:17:17 UTC 2017


writeln( "a.b.c".splitter('.').dropBack(1) ); //compiles ok
writeln( "a.b.c".splitter(".").dropBack(1) );

//error:
Error: template std.range.dropBack cannot deduce function from 
argument types !()(Result, int), candidates are:
(...)

Hm.. can someone explain whats going on?



More information about the Digitalmars-d-learn mailing list