Skip to content

Handle repeated substitution of the same symbol during extraction#18864

Merged
amcasey merged 1 commit into
microsoft:masterfrom
amcasey:GH18857
Oct 3, 2017
Merged

Handle repeated substitution of the same symbol during extraction#18864
amcasey merged 1 commit into
microsoft:masterfrom
amcasey:GH18857

Conversation

@amcasey
Copy link
Copy Markdown
Member

@amcasey amcasey commented Sep 30, 2017

Old: Insert the same Node for every occurrence. The position was
repeatedly mutated during printing.
New: Thunk the Node so that a new one is constructed for every
occurrence.

Fixes #18857

This is a solution, but it's not the only one. Deep cloning would also solve the problem (and might be cheaper).

Old: Insert the same Node for every occurrence.  The position was
repeatedly mutated during printing.
New: Thunk the Node so that a new one is constructed for every
occurrence.

Fixes microsoft#18857
@amcasey
Copy link
Copy Markdown
Member Author

amcasey commented Oct 2, 2017

Latest push is just a rebase on top of #18861.

@amcasey amcasey merged commit b244cd4 into microsoft:master Oct 3, 2017
@amcasey amcasey deleted the GH18857 branch October 3, 2017 00:03
@microsoft microsoft locked and limited conversation to collaborators Jun 14, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants