[Issue 4965] Lacking int, uint etc. versions of most std.math functions

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Oct 1 09:30:45 PDT 2010


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



--- Comment #4 from Peter Alexander <peter.alexander.au at gmail.com> 2010-10-01 09:30:26 PDT ---
(In reply to comment #3)
> Have you seen the code in std.math? It is a really foul hack.
> If you have a function with 3 arguments, you need to write more than 1000
> function overloads. I'm not kidding. Worst code bloat I've seen in my life.

Surely constrained templates can help here?

I agree that the way they were added was a mess, but that's not an argument for
not having them at all (unless it was the only way).

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