Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When I first implemented list assignment to lvalue references, I thought I could simply modify the kids of the refgen op (\) in one spot. But things like ?: make it necessary to do this recursively. So all that code for turning thingies into lvrefs has been moved into a separate function patterned after op_lvalue but handling only the lvref cases. (I thought about combining it with op_lvalue’s switch statement, but that would require ‘if(type == OP_LVREF) goto nomod;’ too many times, which would be harder to maintain.)
- Loading branch information
Father Chrysostomos
committed
Oct 11, 2014
1 parent
d1094c5
commit 7664512
Showing
2 changed files
with
119 additions
and
76 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