[Issue 7606] core.time.TickDuration opCmp accepts only lvalues

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Feb 28 14:13:22 PST 2012


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


Jonathan M Davis <jmdavisProg at gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jmdavisProg at gmx.com


--- Comment #2 from Jonathan M Davis <jmdavisProg at gmx.com> 2012-02-28 14:13:21 PST ---
There's no really no reason for opCmp to take anything other than a straight
TickDuration in this case. TickDuration holds 1 long and that's it. It's not
particularly large or complicated.

In the general case, using auto ref would probably be the correct solution, but
auto ref doesn't currently work for non-templated functions, which opCmp
obviously isn't.

-- 
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