foreach loop + counter iter + Phobos range
bioinfornatics
bioinfornatics at fedoraproject.org
Tue Nov 20 06:08:39 PST 2012
foreach( size_t index, Fastq data; parallel(
fastqFile.byFastq() ) ){
assert(data.header == fastqList[index].header , text(
"Error fastq n°", index, " do not have the right header" ) );
assert(data.sequence == fastqList[index].sequence, text(
"Error fastq n°", index, " do not have the right sequence" ) );
-----
/usr/include/d/std/parallelism.d(3831): Error: delegate dg
(Tuple!(ulong,Fastq)) is not callable using argument types (Fastq)
/usr/include/d/std/parallelism.d(3839): Error: delegate dg
(ulong, Tuple!(ulong,Fastq)) is not callable using argument types
(ulong,Fastq)
/usr/include/d/std/parallelism.d(3317): Error: template instance
std.parallelism.ParallelForeach!(byFastq) error instantiating
instantiatied in ../src/parser/fastq.d(237):
parallel!(byFastq)
../src/parser/fastq.d(237): Error: template instance
std.parallelism.parallel!(byFastq) error instantiating
../src/parser/fastq.d(237): Error: cannot uniquely infer foreach
argument types
fastqFile.byFastq() return a Tuple!(ulong,Fastq) in this case
foreach fail to aggregate correctly
More information about the Digitalmars-d-learn
mailing list