https://bugzilla.mcs.anl.gov/swift/show_bug.cgi?id=1028 Summary: readData in a foreach loop fails to compile. Product: Swift Version: 0.94 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: General AssignedTo: [email protected] ReportedBy: [email protected] Here's the piece of code that fails to compile : type file; app (file o) mysim () { random stdout=@filename(o); } int rand_num[]; foreach i in [0:9] { file f <single_file_mapper; file=@strcat("output/sim_",i,".out")>; f = mysim(); rand_num[i] = readData(f); } Here's the output I get when compiling the code: Could not start execution Failed to convert .swiftx to .kml for bug.swift no such attribute: partialClose in template context [callInternal] -- Configure bugmail: https://bugzilla.mcs.anl.gov/swift/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.