[dmd-internals] [D-Programming-Language/dmd] dd67c8: When we check two type objects equality, we should...

GitHub noreply at github.com
Thu Jul 4 03:03:37 PDT 2013


  Branch: refs/heads/master
  Home:   https://github.com/D-Programming-Language/dmd
  Commit: dd67c8c6cc2cdd2056f46a87acac19ef85908bc9
      https://github.com/D-Programming-Language/dmd/commit/dd67c8c6cc2cdd2056f46a87acac19ef85908bc9
  Author: k-hara <k.hara.pg at gmail.com>
  Date:   2013-06-29 (Sat, 29 Jun 2013)

  Changed paths:
    M src/ctfeexpr.c
    M src/expression.c
    M src/interpret.c

  Log Message:
  -----------
  When we check two type objects equality, we should use Type::equals instead of directly pointer comparison.


  Commit: 877e7bfd7c29fb016323934bb04bd3420bffe5c7
      https://github.com/D-Programming-Language/dmd/commit/877e7bfd7c29fb016323934bb04bd3420bffe5c7
  Author: k-hara <k.hara.pg at gmail.com>
  Date:   2013-06-29 (Sat, 29 Jun 2013)

  Changed paths:
    M src/declaration.c
    M src/expression.c
    M src/func.c
    M src/mtype.c
    M src/mtype.h
    A test/runnable/functype.d

  Log Message:
  -----------
  Default args and arg identifiers are now volatile information in TypeFunction.

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.


  Commit: d7362898f16d7d5e04ac4e9f374a39a5e8e0ff53
      https://github.com/D-Programming-Language/dmd/commit/d7362898f16d7d5e04ac4e9f374a39a5e8e0ff53
  Author: k-hara <k.hara.pg at gmail.com>
  Date:   2013-06-29 (Sat, 29 Jun 2013)

  Changed paths:
    M src/expression.c
    R test/fail_compilation/fail3866.d
    M test/runnable/functype.d

  Log Message:
  -----------
  Improved fix for Issue 3866 - anonymous delegate with default parameters cross-talks to another anonymous delegate

This reverts commit acc22ce25db42facfe4917aeceabd28a410f4c95,
and moves original test into runnable/functype.d


  Commit: bce2d07d6cd2c09a5153afc65260b63c32447ade
      https://github.com/D-Programming-Language/dmd/commit/bce2d07d6cd2c09a5153afc65260b63c32447ade
  Author: k-hara <k.hara.pg at gmail.com>
  Date:   2013-06-29 (Sat, 29 Jun 2013)

  Changed paths:
    M test/runnable/functype.d

  Log Message:
  -----------
  fix Issue 3646 - Default values of function arguments are ignored when instantiating a template.


  Commit: 864d5a336f03c6f5ada808d6bc093c92d2ebbf47
      https://github.com/D-Programming-Language/dmd/commit/864d5a336f03c6f5ada808d6bc093c92d2ebbf47
  Author: k-hara <k.hara.pg at gmail.com>
  Date:   2013-06-29 (Sat, 29 Jun 2013)

  Changed paths:
    M test/runnable/functype.d

  Log Message:
  -----------
  fix Issue 8579 - Default parameter appears a part of typeof().stringof of a function variable


  Commit: 87627136c426a17bcf1bec0a159384284c70b062
      https://github.com/D-Programming-Language/dmd/commit/87627136c426a17bcf1bec0a159384284c70b062
  Author: k-hara <k.hara.pg at gmail.com>
  Date:   2013-06-29 (Sat, 29 Jun 2013)

  Changed paths:
    M src/cppmangle.c

  Log Message:
  -----------
  Fix CppMangle issue

Use merge2() result for function argument types mangling.


  Commit: a711eb6b499ca85b7cfa4e758d9e968fef8d315f
      https://github.com/D-Programming-Language/dmd/commit/a711eb6b499ca85b7cfa4e758d9e968fef8d315f
  Author: Daniel Murphy <yebblies at gmail.com>
  Date:   2013-07-04 (Thu, 04 Jul 2013)

  Changed paths:
    M src/cppmangle.c
    M src/ctfeexpr.c
    M src/declaration.c
    M src/expression.c
    M src/func.c
    M src/interpret.c
    M src/mtype.c
    M src/mtype.h
    R test/fail_compilation/fail3866.d
    A test/runnable/functype.d

  Log Message:
  -----------
  Merge pull request #1102 from 9rnsr/improveDefArgs

Improve default argument processing


Compare: https://github.com/D-Programming-Language/dmd/compare/2c40bf74b9ef...a711eb6b499c


More information about the dmd-internals mailing list