[dmd-internals] [D-Programming-Language/dmd] 509cdd: [Refactoring] Improve `Type::addSTC`

GitHub noreply at github.com
Sat Dec 21 12:56:06 PST 2013


  Branch: refs/heads/master
  Home:   https://github.com/D-Programming-Language/dmd
  Commit: 509cddd0c8246a5725cfbbf9d5ae78df07a64b52
      https://github.com/D-Programming-Language/dmd/commit/509cddd0c8246a5725cfbbf9d5ae78df07a64b52
  Author: k-hara <k.hara.pg at gmail.com>
  Date:   2013-12-19 (Thu, 19 Dec 2013)

  Changed paths:
    M src/mtype.c

  Log Message:
  -----------
  [Refactoring] Improve `Type::addSTC`


  Commit: 90ed3577d0025ae47a3578e99f364a3af91619ef
      https://github.com/D-Programming-Language/dmd/commit/90ed3577d0025ae47a3578e99f364a3af91619ef
  Author: k-hara <k.hara.pg at gmail.com>
  Date:   2013-12-19 (Thu, 19 Dec 2013)

  Changed paths:
    M src/parse.c

  Log Message:
  -----------
  [Refactoring] Improve `Parser::parseType` by using `Type::addSTC`


  Commit: 8c6fb7352f7b7fdca3ae8df5ced03e3985d85a4b
      https://github.com/D-Programming-Language/dmd/commit/8c6fb7352f7b7fdca3ae8df5ced03e3985d85a4b
  Author: k-hara <k.hara.pg at gmail.com>
  Date:   2013-12-19 (Thu, 19 Dec 2013)

  Changed paths:
    M src/parse.c

  Log Message:
  -----------
  [Refactoring] Improve CastExp parsing by using `Type::addSTC`


  Commit: 09448ff6c3d1a273444983cf94f9b07ff70d112d
      https://github.com/D-Programming-Language/dmd/commit/09448ff6c3d1a273444983cf94f9b07ff70d112d
  Author: k-hara <k.hara.pg at gmail.com>
  Date:   2013-12-19 (Thu, 19 Dec 2013)

  Changed paths:
    M src/parse.c
    M test/runnable/testconst.d

  Log Message:
  -----------
  fix Issue 11768 - inconsistent behavior of type qualifier inout + const

Fix up `Parser::parseBasicType` by using `Type::addSTC`


  Commit: 70d3f69978cad2f5fb34b356aee06d4df3322b3a
      https://github.com/D-Programming-Language/dmd/commit/70d3f69978cad2f5fb34b356aee06d4df3322b3a
  Author: k-hara <k.hara.pg at gmail.com>
  Date:   2013-12-20 (Fri, 20 Dec 2013)

  Changed paths:
    M src/mtype.c
    M src/template.c

  Log Message:
  -----------
  [style] fix indent


  Commit: ca45ea0601348435fe6bc535b27c1ab7e632ebb3
      https://github.com/D-Programming-Language/dmd/commit/ca45ea0601348435fe6bc535b27c1ab7e632ebb3
  Author: k-hara <k.hara.pg at gmail.com>
  Date:   2013-12-20 (Fri, 20 Dec 2013)

  Changed paths:
    M src/func.c
    M src/glue.c
    M src/mtype.c
    M src/template.c
    M src/toctype.c

  Log Message:
  -----------
  [style] Just sort out cases

0 -> const -> wild -> shared -> ... -> immutable


  Commit: 154e42679ada474ddae5384423217e06846466e1
      https://github.com/D-Programming-Language/dmd/commit/154e42679ada474ddae5384423217e06846466e1
  Author: k-hara <k.hara.pg at gmail.com>
  Date:   2013-12-20 (Fri, 20 Dec 2013)

  Changed paths:
    M src/template.c

  Log Message:
  -----------
  [bugfix] Fix type parameter deduction bug

- `inout(U)` should accept `shared(inout(T))`
- `shared(inout(U))` should accept `shared(const(T))`


  Commit: c895ff7f1f1df0892c0c56a43c256b86592396f0
      https://github.com/D-Programming-Language/dmd/commit/c895ff7f1f1df0892c0c56a43c256b86592396f0
  Author: k-hara <k.hara.pg at gmail.com>
  Date:   2013-12-20 (Fri, 20 Dec 2013)

  Changed paths:
    M src/expression.c
    M src/mtype.c
    M src/mtype.h
    M src/template.c
    M test/fail_compilation/ice10727a.d
    M test/fail_compilation/ice10727b.d
    M test/runnable/testconst.d

  Log Message:
  -----------
  Clean up inout deduction

- Rename `Type::wildConvTo` to `deduceWild`
- Use `wildmatch` for sum of arguments match level, and use `wm` for one parameter match level.
- Extract current workarounds for issue 6930


  Commit: 2c0ead859f208d80190d4e634b5a0737d4b64645
      https://github.com/D-Programming-Language/dmd/commit/2c0ead859f208d80190d4e634b5a0737d4b64645
  Author: k-hara <k.hara.pg at gmail.com>
  Date:   2013-12-20 (Fri, 20 Dec 2013)

  Changed paths:
    M src/func.c
    M src/glue.c
    M src/mtype.c
    M src/mtype.h
    M src/parse.c
    M src/template.c
    M src/toctype.c
    M test/runnable/structlit.d
    M test/runnable/testconst.d

  Log Message:
  -----------
  fix Issue 6930 - combined type of immutable(T) and inout(T) should be inout(const(T))


  Commit: 6f4866b5b07094861c55f20165496019683242ef
      https://github.com/D-Programming-Language/dmd/commit/6f4866b5b07094861c55f20165496019683242ef
  Author: Daniel Murphy <yebblies at gmail.com>
  Date:   2013-12-21 (Sat, 21 Dec 2013)

  Changed paths:
    M src/expression.c
    M src/func.c
    M src/glue.c
    M src/mtype.c
    M src/mtype.h
    M src/parse.c
    M src/template.c
    M src/toctype.c
    M test/fail_compilation/ice10727a.d
    M test/fail_compilation/ice10727b.d
    M test/runnable/structlit.d
    M test/runnable/testconst.d

  Log Message:
  -----------
  Merge pull request #2992 from 9rnsr/fix6930

[enh] Issue 6930 - combined type of immutable(T) and inout(T) should be inout(const(T))


Compare: https://github.com/D-Programming-Language/dmd/compare/ec34f7724025...6f4866b5b070


More information about the dmd-internals mailing list