foreach(i; 2.1 .. 4.10001) {
writeln(typeid(typeof(i))); // Output: double
break;
}
I'd like MATLAB style more:
foreach (f; linspace (0.0, 1.0, 100))
{...}
here f gets values 0, 0.0101.., 0.0202..., ..., 0.98989..., 1.0
foreach (f; logspace (1.0, 1e6, 7))
{...}
here f
http://d.puremagic.com/issues/show_bug.cgi?id=4111
--- Comment #1 from bearophile_h...@eml.cc 2010-04-22 02:09:06 PDT ---
Aelxx (aelxx at yandex dot ru) suggests:
I'd like MATLAB style more:
foreach (f; linspace (0.0, 1.0, 100))
{...}
here f gets values 0, 0.0101.., 0.0202..., ..., 0.98989...,
Aelxx:
foreach(i; 2.1 .. 4.10001) {
writeln(typeid(typeof(i))); // Output: double
break;
}
I'd like MATLAB style more:
foreach (f; linspace (0.0, 1.0, 100))
{...}
here f gets values 0, 0.0101.., 0.0202..., ..., 0.98989..., 1.0
foreach (f; logspace (1.0, 1e6,
http://d.puremagic.com/issues/show_bug.cgi?id=3398
--- Comment #2 from Don clugd...@yahoo.com.au 2010-04-22 06:28:52 PDT ---
One instance where wrong code is currently generated is in
std.c.windows.winsock.d, in_addr and in6_addr.
My mitigation would break existing code, though, in cases
http://d.puremagic.com/issues/show_bug.cgi?id=1079
Don clugd...@yahoo.com.au changed:
What|Removed |Added
Status|REOPENED|RESOLVED
http://d.puremagic.com/issues/show_bug.cgi?id=3207
--- Comment #12 from Leandro Lucarella llu...@gmail.com 2010-04-22 19:59:57
PDT ---
It looks like all the paperwork is finally done (not confirmed though), and
Mihail is still working on the patch and merge, fixing the stuff that comes
from