Re: [Issue 4111] New: Foreach ranges accept floating-point extrema

2010-04-22 Thread 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, 7)) {...} here f

[Issue 4111] Foreach ranges accept floating-point extrema

2010-04-22 Thread d-bugmail
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...,

Re: [Issue 4111] New: Foreach ranges accept floating-point extrema

2010-04-22 Thread bearophile
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,

[Issue 3398] Attributes inside a union screws data alignment

2010-04-22 Thread d-bugmail
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

[Issue 1079] gdb: Dwarf Error: Cannot find DIE at 0xb705 referenced from DIE at 0x250

2010-04-22 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=1079 Don clugd...@yahoo.com.au changed: What|Removed |Added Status|REOPENED|RESOLVED

[Issue 3207] gdb: Push D patches upstream

2010-04-22 Thread d-bugmail
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