Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Fix mysterious "Seq already iterated" errors for Seq containing Seqs
When a Seq contains another Seq, the latter often throwed errors about
having already been iterated even if the code (like List.join) really
only iterated once.
The reason is that a Seq when sunk will iterate and sink all its items.
We need to take care whenever we push values while iterating because
push returns the pused value and thus may .sink it.
Fixes for example ('ABC'.ords xx 1).join
Regressions in S05-modifier/counted.t and counted-match.t but I really
have no idea how that could happen.- Loading branch information
Showing
4 changed files
with
16 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters