|
From: Ethan M. <merritt@u.washington.edu> - 2008-07-21 20:36:42
|
On Friday 18 July 2008 21:10:12 Ethan A Merritt wrote:
> On Friday 18 July 2008, Lutz Maibaum wrote:
> > It would be great if one could do something like
> >
> > plot for (filename in test*.dat) i <all your options>
> >
>
> I have toyed with the idea of having an explicit string iterator that
> would do this automatically, something like
>
> list = system("ls *.dat")
> plot for [FILE in list] FILE
>
> but it turns out to require more code than I would have guessed, and
> it didn't seem worth it since the capability is there already.
I had another look over the weekend. Either I missed the obvious before,
or we have better support routines in place now. In any event, the extra
code to implement this was quite small. So I have added to CVS support
for the variant:
plot for [ <variablename> in "string of words" ] ....
--
Ethan A Merritt
|