Why ByChunk is not regnize by st.range.takeOne and why Section has no value

bioinfornatics via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Nov 2 16:58:03 PST 2014


Dear,
Some problem to build this code: 
http://fpaste.org/147327/75948141/


$ ldc2 fasta_test.d
/usr/include/d/std/range.d(3605): Error: template std.array.save
cannot deduce function from argument types !()(ByChunk),
candidates are:
/usr/include/d/std/array.d(554):        std.array.save(T)(T[] a)
fasta_test.d(46): Error: template instance
std.range.takeOne!(ByChunk) error instantiating
fasta_test.d(88):        instantiated from here: Parser!(Fasta,
ByChunk)
fasta_test.d(79): Error: type Section!((words) => words[0] ==
'>', (words) => words[0] == '\x0a') has no value
fasta_test.d(50): Error: template std.algorithm.countUntil cannot
deduce function from argument types !(__lambda3)(ubyte[]),
candidates are:
/usr/include/d/std/algorithm.d(5406):
std.algorithm.countUntil(alias pred = "a == b", R, Rs...)(R
haystack, Rs needles) if (isForwardRange!R && Rs.length > 0 &&
isForwardRange!(Rs[0]) == isInputRange!(Rs[0]) &&
is(typeof(startsWith!pred(haystack, needles[0]))) && (Rs.length
== 1 || is(typeof(countUntil!pred(haystack,
needles[1..__dollar])))))

Thanks for your help


More information about the Digitalmars-d-learn mailing list