[Issue 4073] core.cpuid crashes

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jun 9 08:40:53 PDT 2010


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


Masahiro Nakagawa <repeatedly at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |repeatedly at gmail.com


--- Comment #2 from Masahiro Nakagawa <repeatedly at gmail.com> 2010-06-09 08:40:51 PDT ---
I tested following code using trunk on Mac OSX 10.6.3.

-----
import std.stdio, core.cpuid;

// from issue 4189
void main()
{
    auto vec = new double[10];

    foreach(i, ref x; vec) { x = cast(double) i; }

    vec[] *= 0.5;

    writeln(vec);
}
-----

It works! writeln prints "0 0.5 1 1.5 2 2.5 3 3.5 4 4.5".

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