3 Feb 2004 23:28
nested loop question
Evgeny A. Fadeev <fadeev <at> Princeton.EDU>
2004-02-03 22:28:22 GMT
2004-02-03 22:28:22 GMT
Hello,
i am a little confused about the difference between
<at> and <at> <at> . according to the online manual (i know it
is not maintained by nih, but still...) when <at> is
used, content of the file is run only once on the
fist pass of the loop containing the <at> statement
while <at> <at> would make the included file to be rerun on
each pass. but i had a strange behavior with the
nested loop structure (example attached)
whenever i run the variant with the inner loop (my
example is with a double loop) included from an
external file as <at> <at> (and keeping the comments like
they are now in loop1.inp) xplor complains ("for" -
unexpected command or something like that) - it
actually includes the file, but cannot parse it
however, the included file gets successfully parsed
and run if it does not contain a loop.(i could
include some benign statement like 'display' in the
loop2.inp and it would work fine)
but when i run the same file with the inner loop in
loop1.inp uncommented and line <at> <at> loop2.inp removed
the program runs fine, which shows that there is
nothing wrong with the logic, but the inclusion
mechanism fails for some reason.
finally, when i run the inner loop file with <at> it
works. and seems to run the included file on _each_
(Continue reading)
RSS Feed