Skip to content

Comments

[Refactoring] Gather assignment/construction handling into AssignExp#2702

Merged
WalterBright merged 5 commits intodlang:masterfrom
9rnsr:refactor_assign
Nov 8, 2013
Merged

[Refactoring] Gather assignment/construction handling into AssignExp#2702
WalterBright merged 5 commits intodlang:masterfrom
9rnsr:refactor_assign

Conversation

@9rnsr
Copy link
Contributor

@9rnsr 9rnsr commented Nov 1, 2013

This is necessary for:

  1. Standardize internal AST to handle NRVO form more.
  2. The future behavior fix around initialization of multidimensional array
  3. Improve a little mess code in AssignExp::semantic

And this is based on #2677, because it will reduce number of internal temporary variable creation.

9rnsr added 5 commits November 3, 2013 17:24
Move "special cases" up in the function body
- In `AssignExp::toElem`, handling for the ref-init and NRVO.
- In `AssignExp::semantic`, handling for TOKconstruct case.
WalterBright added a commit that referenced this pull request Nov 8, 2013
[Refactoring] Gather assignment/construction handling into AssignExp
@WalterBright WalterBright merged commit 8a3115d into dlang:master Nov 8, 2013
@9rnsr 9rnsr deleted the refactor_assign branch November 8, 2013 07:04
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Garrgh please don't introduce more of this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants