[phobos] [D-Programming-Language/phobos] ab9c27: Fix for issue# 9214.

GitHub noreply at github.com
Thu Dec 27 08:01:13 PST 2012


  Branch: refs/heads/master
  Home:   https://github.com/D-Programming-Language/phobos
  Commit: ab9c275962667c0430b3b04b05e566825e91c7aa
      https://github.com/D-Programming-Language/phobos/commit/ab9c275962667c0430b3b04b05e566825e91c7aa
  Author: jmdavis <jmdavisProg at gmx.com>
  Date:   2012-12-26 (Wed, 26 Dec 2012)

  Changed paths:
    M std/datetime.d

  Log Message:
  -----------
  Fix for issue# 9214.

I don't think that it makes any sense for core.time.TickDuration.to to
be a property, since it's a conversion function, not an abstraction for
a variable. However, it _does_ make sense for the example to use one of
TickDuration's property functions instead (it makes the code cleaner
too). So, I've done that. And if the property debate results in
non-property functions being allowed to be called without parens (as
currently seems likely), then anyone wanting to use the to function
without the extra parens can do so then.


  Commit: e2833961c765f228df6fa08828ec5f8d947cb16c
      https://github.com/D-Programming-Language/phobos/commit/e2833961c765f228df6fa08828ec5f8d947cb16c
  Author: Alex Rønne Petersen <alex at alexrp.com>
  Date:   2012-12-27 (Thu, 27 Dec 2012)

  Changed paths:
    M std/datetime.d

  Log Message:
  -----------
  Merge pull request #1038 from jmdavis/9214

Fix for issue# 9214.


Compare: https://github.com/D-Programming-Language/phobos/compare/7037621aff5f...e2833961c765


More information about the phobos mailing list