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


Masahiro Nakagawa <repeate...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |repeate...@gmail.com


--- Comment #2 from Masahiro Nakagawa <repeate...@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: -------

Reply via email to