Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve default argument processing #1102

Merged
merged 6 commits into from Jul 4, 2013
Merged

Commits on Jun 29, 2013

  1. When we check two type objects equality, we should use Type::equals i…

    …nstead of directly pointer comparison.
    9rnsr committed Jun 29, 2013
    Copy the full SHA
    dd67c8c View commit details
    Browse the repository at this point in the history
  2. Default args and arg identifiers are now volatile information in Type…

    …Function.
    
    1. The extra informations would be kept after semantic analysis for function pointer and delegate types. But merging type would strip all the extras from the type structure, then cache the stripped copy into.
    
    2. The types has extra informations cannot be named. In other words, AliasDeclaration would always strip the aliased type. This rule also works for Template Type Parameter, and fixes issue 3646 well.
    
    3. CondExp would strip them from the type of its result.
    9rnsr committed Jun 29, 2013
    Copy the full SHA
    877e7bf View commit details
    Browse the repository at this point in the history
  3. Improved fix for Issue 3866 - anonymous delegate with default paramet…

    …ers cross-talks to another anonymous delegate
    
    This reverts commit acc22ce,
    and moves original test into runnable/functype.d
    9rnsr committed Jun 29, 2013
    Copy the full SHA
    d736289 View commit details
    Browse the repository at this point in the history
  4. fix Issue 3646 - Default values of function arguments are ignored whe…

    …n instantiating a template.
    9rnsr committed Jun 29, 2013
    Copy the full SHA
    bce2d07 View commit details
    Browse the repository at this point in the history
  5. fix Issue 8579 - Default parameter appears a part of typeof().stringo…

    …f of a function variable
    9rnsr committed Jun 29, 2013
    Copy the full SHA
    864d5a3 View commit details
    Browse the repository at this point in the history
  6. Fix CppMangle issue

    Use merge2() result for function argument types mangling.
    9rnsr committed Jun 29, 2013
    Copy the full SHA
    8762713 View commit details
    Browse the repository at this point in the history