-
Notifications
You must be signed in to change notification settings - Fork 530
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[perl #121827] Fix repeat stack bugs
(...)x... is marked as a list at compile time and given a pushmark, before the context is known. If it turns out to be called in scalar or void context after all, then pp_repeat has to handle the mark that has been pushed on to the markstack. It was not handling the mark for overloading. Nor was it handling void context correctly at all. (The stack may have an empty list, in which case we call FETCH on a potentially tied stack item that has nothing to do with us.) I tested it in void context, because I plan to undo the listification when scalar context is applied, for speed.
- Loading branch information
Father Chrysostomos
committed
Nov 6, 2014
1 parent
d71b73c
commit 3a100da
Showing
3 changed files
with
37 additions
and
11 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