[Issue 9112] Uniform default construction

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Dec 5 17:31:49 PST 2012


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


bearophile_hugs at eml.cc changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bearophile_hugs at eml.cc


--- Comment #1 from bearophile_hugs at eml.cc 2012-12-05 17:31:48 PST ---
This is useful in generic code:
int n = int(10);

So we use:
reduce!q{a + b}(T(0), items)

Instead of:
reduce!q{a + b}(cast(T)0, items)

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