[Swift-devel] [Bug 123] New: Array mappers should accept programmatically-built string[]s
bugzilla-daemon at mcs.anl.gov
bugzilla-daemon at mcs.anl.gov
Tue Dec 18 14:37:25 CST 2007
http://bugzilla.mcs.anl.gov/swift/show_bug.cgi?id=123
Summary: Array mappers should accept programmatically-built
string[]s
Product: Swift
Version: unspecified
Platform: Macintosh
OS/Version: Mac OS
Status: NEW
Severity: normal
Priority: P2
Component: SwiftScript language
AssignedTo: benc at hawaga.org.uk
ReportedBy: tiberius at mcs.anl.gov
I expected this to work:
type file{};
int rangeMax=3;
int stepRange=[1:rangeMax];
string oldvalfilenames[];
foreach step in stepRange{
oldvalfilenames[step] = @strcat("step_",step,"_theta.txt");
trace(oldvalfilenames[step]);
}
file oldvalfile[] <array_mapper; files=oldvalfilenames>;
trace(@filenames(oldvalfile));
Please suggest a solution for completely customizable file names in array
mappers:
E.g.
step_3_theta_5.txt, step_4_theta6.txt
--
Configure bugmail: http://bugzilla.mcs.anl.gov/swift/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You reported the bug, or are watching the reporter.
More information about the Swift-devel
mailing list