[Swift-devel] wishlist: string array initialization in a loop

Tiberiu Stef-Praun tiberius at ci.uchicago.edu
Fri Apr 27 13:36:37 CDT 2007


=======
            string nameArray[];
            string channelNo[]= ["1",  "2",  "3",  "4",  "5",  "6",
"7",  "8",  "9",  "10",  "11",  "12",  "13",  "14",
            foreach string ch, ci in channelNo{

nameArray[ci]=@strcat(trialType,"-",subjectNo,"channel",ch,"_cwt-avgResults.Rdata");
                //print(outputNamesArray[ci]);
            }
           string testName=nameArray[3];
           print(testName);
           // returns something like
nameArray-6a860c63-62c2-44ce-9fda-6bb43e3c871e-0-0-0-0-0.3
=======

I also tried moving the loop in a procedure, and doing
string nameArray[]=loopNamingProcedure();

That did not work either.
Any suggestions ?

Ben was working on something related, but I still can't do a string
array initialization in a loop

Tibi
-- 
Tiberiu (Tibi) Stef-Praun, PhD
Research Staff, Computation Institute
5640 S. Ellis Ave, #405
University of Chicago
http://www-unix.mcs.anl.gov/~tiberius/



More information about the Swift-devel mailing list