The code:
const testData = (
//([0.0, 2.0], 1.0, 1.0, 1.0, sqrt(2.0)),
//([0.0, 2.0, 4.0], 2.0, 2.0, 1.0, sqrt(2.0)),
([0.0, 2.0, 2.0, 4.0], 2.0, 2.0, 1.0, sqrt(2.0))
);
proc main() {
for item in testData {}
}
fails to compile with the message:
test_statistics.chpl:7: In function 'main':
test_statistics.chpl:8: error: Cannot iterate over non-homogeneous tuples. If
you intended to use zippered iteration, add the new keyword 'zip' before the
tuple of iteratable expressions.
If the tuples that are commented are uncommented then the code compiles
fine.
--
Russel.
=============================================================================
Dr Russel Winder t: +44 20 7585 2200 voip: sip:[email protected]
41 Buckmaster Road m: +44 7770 465 077 xmpp: [email protected]
London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder
signature.asc
Description: This is a digitally signed message part
------------------------------------------------------------------------------
_______________________________________________ Chapel-bugs mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/chapel-bugs
