PREV INDEX NEXT

Author: Unknown
Subject: Handling Infinite Loops
Date: Tuesday, 25 Feb 2020, 13:29:18

When I type
% echo aaaaaa | /c/cs223/Hwk3/strwrs -s a aa
the staff solution goes into an infinite loop. Is this type of non-terminating substitution something we have to handle, or do we not have to worry about it?

In note 4 on the spec, it reads: "Point to Ponder: Will these measures detect ALL cases where strwrs would not otherwise terminate?" Was that alluding to cases like these where the line grows into an arbitrary large string of 'a's, or is this not one of the cases to consider?
PREV INDEX NEXT