I have a feedback loop using ELASTIC|FANINTWO to process the fed back
records before the next input record, and GATE to stop the whole mess at
EOF on the input file:

  (end /) ... | end: count lines | in: fanintwo | more: fanout | ...
    / end: | stop: gate
    / more: | ... | elastic | stop: | in:

Everything before ELASTIC is synchronous.  Can I trust this not to cut
off any feedback at EOF?  I see two things I'm not sure about after
FANINTWO releases the last record on its primary input:

* Can I trust FANINTWO to read all available input on the alternate
  before trying the primary again?  The description starting with
  "When a record is available on "fanintwo"'s primary input stream"
  makes me a little nervous about that.

* Will COUNT wait until FANINTWO tries to read past the last record
  before it sees EOF and writes the count?  Does this mean it might not?
  "COUNT writes the count information record when it gets an end-of-file
  condition on either its input or its output."

¬R

Reply via email to