[Issue 3700] Ref foreach over large static arrays fails

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jan 14 06:56:28 PST 2010


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



--- Comment #2 from Lars T. Kyllingstad <bugzilla at kyllingen.net> 2010-01-14 06:56:27 PST ---
You may be right. But consider the following:

* The "Arrays" page on the D homepage says that "The total size of a static
array cannot exceed 16Mb." I am only allocating half of that.

* When I've run my example, it has *always* caused a segmentation fault.

* The following, on the other hand, has so far *never* caused a segmentation
fault on my machine:

void main()
{
  double[1_000_000] a;
  for (i; 0 .. a.length)  a[i] = 1.0;
}

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