[phobos] [D-Programming-Language/phobos] 0e6f9c: Improve docs for `std.typecons.scoped`

GitHub via phobos phobos at puremagic.com
Tue Mar 29 17:43:59 PDT 2016


  Branch: refs/heads/master
  Home:   https://github.com/D-Programming-Language/phobos
  Commit: 0e6f9c0338c46a052adea6bd65a5ff773e10792d
      https://github.com/D-Programming-Language/phobos/commit/0e6f9c0338c46a052adea6bd65a5ff773e10792d
  Author: Nick Treleaven <nick.treleaven at btinternet.com>
  Date:   2016-03-29 (Tue, 29 Mar 2016)

  Changed paths:
    M std/typecons.d

  Log Message:
  -----------
  Improve docs for `std.typecons.scoped`

Fix note about moving a class instance.
Show automatic destruction of `scoped` result.
Show how `scoped` can lead to invalid class references.
Show move(typeof(scoped!A)) is wrong.
Show scoped member variable initialization.


  Commit: 3d15c1f3a9dd8b7ea9faf7e46678d2742cc26408
      https://github.com/D-Programming-Language/phobos/commit/3d15c1f3a9dd8b7ea9faf7e46678d2742cc26408
  Author: H. S. Teoh <hsteoh at quickfur.ath.cx>
  Date:   2016-03-29 (Tue, 29 Mar 2016)

  Changed paths:
    M std/typecons.d

  Log Message:
  -----------
  Merge pull request #4129 from ntrel/scoped-docs

Improve docs for `std.typecons.scoped`


Compare: https://github.com/D-Programming-Language/phobos/compare/9e2c241f51ba...3d15c1f3a9dd


More information about the phobos mailing list