[Issue 3383] newVoid

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jun 6 03:30:44 PDT 2011


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



--- Comment #3 from bearophile_hugs at eml.cc 2011-06-06 03:26:11 PDT ---
One case worth considering:

auto mat = new int[5][5];
foreach (row; mat)
    row[] = 10;

The way used to initialize a matrix to void is useful to initialize all of it
to a defined value too.

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