[Issue 9214] TickDuration.to should probably be a property

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Dec 27 08:01:26 PST 2012


http://d.puremagic.com/issues/show_bug.cgi?id=9214



--- Comment #3 from github-bugzilla at puremagic.com 2012-12-27 08:01:24 PST ---
Commits pushed to master at https://github.com/D-Programming-Language/phobos

https://github.com/D-Programming-Language/phobos/commit/ab9c275962667c0430b3b04b05e566825e91c7aa
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.

https://github.com/D-Programming-Language/phobos/commit/e2833961c765f228df6fa08828ec5f8d947cb16c
Merge pull request #1038 from jmdavis/9214

Fix for issue# 9214.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list