[dmd-internals] [D-Programming-Language/dmd] 287ea8: Allow string literals to be cast to mutable

GitHub noreply at github.com
Thu Mar 28 13:12:12 PDT 2013


  Branch: refs/heads/master
  Home:   https://github.com/D-Programming-Language/dmd
  Commit: 287ea89167e8753f701a5235c53a47431a179636
      https://github.com/D-Programming-Language/dmd/commit/287ea89167e8753f701a5235c53a47431a179636
  Author: Don Clugston <emailsdontbelong at inarepository.com>
  Date:   2013-03-26 (Tue, 26 Mar 2013)

  Changed paths:
    M src/interpret.c
    M test/compilable/interpret3.d

  Log Message:
  -----------
  Allow string literals to be cast to mutable

It is legal in constfolding, and it's already impossible
to modify a string literal in CTFE.


  Commit: 2c0065d40a63dc5f32f3bae2c7fc6c4f5877b6ec
      https://github.com/D-Programming-Language/dmd/commit/2c0065d40a63dc5f32f3bae2c7fc6c4f5877b6ec
  Author: Don Clugston <emailsdontbelong at inarepository.com>
  Date:   2013-03-26 (Tue, 26 Mar 2013)

  Changed paths:
    M src/ctfeexpr.c
    M test/compilable/interpret3.d

  Log Message:
  -----------
  CTFE: Fix comparison of string enums

String enum compares was failing to compile because it wasn't
checking the base type, so wasn't recognizing it as a string.


  Commit: 24f72718e4d7613b5ef4ea611a36cf075beb25aa
      https://github.com/D-Programming-Language/dmd/commit/24f72718e4d7613b5ef4ea611a36cf075beb25aa
  Author: Walter Bright <walter at walterbright.com>
  Date:   2013-03-28 (Thu, 28 Mar 2013)

  Changed paths:
    M src/ctfeexpr.c
    M src/interpret.c
    M test/compilable/interpret3.d

  Log Message:
  -----------
  Merge pull request #1804 from donc/string_enum

Fix treatment of string enums in CTFE


Compare: https://github.com/D-Programming-Language/dmd/compare/b4be1a5e85a3...24f72718e4d7


More information about the dmd-internals mailing list