Thread overview | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
March 03, 2012 [Issue 7632] New: byValue() for associative arrays doesn't return the correct values | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=7632 Summary: byValue() for associative arrays doesn't return the correct values Product: D Version: D2 Platform: x86_64 OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: exetoc@gmail.com --- Comment #0 from Erik Johansson Andersson <exetoc@gmail.com> 2012-03-02 17:50:14 PST --- This has been tested using the latest git revision. Test case: import std.stdio; void main() { int[int] i; foreach (idx; 0 .. 10) i[idx] = idx * 2; writeln(i.byValue()); // output: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0] writeln(i.values); // output: [0, 8, 16, 2, 10, 18, 4, 12, 6, 14] } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
March 09, 2012 [Issue 7632] byValue() for associative arrays doesn't return the correct values | ||||
---|---|---|---|---|
| ||||
Posted in reply to Erik Johansson Andersson | http://d.puremagic.com/issues/show_bug.cgi?id=7632 Erik Johansson Andersson <exetoc@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P2 |P3 Severity|normal |minor -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
March 14, 2012 [Issue 7632] byValue() for associative arrays doesn't return the correct values | ||||
---|---|---|---|---|
| ||||
Posted in reply to Erik Johansson Andersson | http://d.puremagic.com/issues/show_bug.cgi?id=7632 hsteoh@quickfur.ath.cx changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hsteoh@quickfur.ath.cx --- Comment #1 from hsteoh@quickfur.ath.cx 2012-03-13 22:18:01 PDT --- Appears to have been fixed in even more latest git ;-) (2012-03-13). Please verify. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
March 15, 2012 [Issue 7632] byValue() for associative arrays doesn't return the correct values | ||||
---|---|---|---|---|
| ||||
Posted in reply to Erik Johansson Andersson | http://d.puremagic.com/issues/show_bug.cgi?id=7632 --- Comment #2 from Erik Johansson Andersson <exetoc@gmail.com> 2012-03-14 17:38:07 PDT --- (In reply to comment #1) > Appears to have been fixed in even more latest git ;-) (2012-03-13). Please > verify. The output is still the same for me. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
March 15, 2012 [Issue 7632] byValue() for associative arrays doesn't return the correct values | ||||
---|---|---|---|---|
| ||||
Posted in reply to Erik Johansson Andersson | http://d.puremagic.com/issues/show_bug.cgi?id=7632 --- Comment #3 from hsteoh@quickfur.ath.cx 2012-03-14 21:52:47 PDT --- OK I'll leave this bug open for now. I just tried it again with the latest dmd from git, and got this output: [0, 8, 16, 2, 10, 18, 4, 12, 6, 14] [0, 8, 16, 2, 10, 18, 4, 12, 6, 14] I'm also using the latest druntime & phobos from git; I wonder if the problem is caused by a bug in older druntime or phobos. Have you tried building druntime/phobos from git to see if it still has the same effect? P.S. I'm also using 64-bit Linux, so unless there's some system-dependent issue here, I'm quite surprised that we're getting different results. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
March 15, 2012 [Issue 7632] byValue() for associative arrays doesn't return the correct values | ||||
---|---|---|---|---|
| ||||
Posted in reply to Erik Johansson Andersson | http://d.puremagic.com/issues/show_bug.cgi?id=7632 --- Comment #4 from Erik Johansson Andersson <exetoc@gmail.com> 2012-03-15 04:20:07 PDT --- (In reply to comment #3) > OK I'll leave this bug open for now. I just tried it again with the latest dmd from git, and got this output: > > [0, 8, 16, 2, 10, 18, 4, 12, 6, 14] > [0, 8, 16, 2, 10, 18, 4, 12, 6, 14] > > I'm also using the latest druntime & phobos from git; I wonder if the problem is caused by a bug in older druntime or phobos. Have you tried building druntime/phobos from git to see if it still has the same effect? > > P.S. I'm also using 64-bit Linux, so unless there's some system-dependent issue here, I'm quite surprised that we're getting different results. The package installs the latest phobos and druntime as well. I've been checking the modification dates of all the files to make sure that they've been replaced with the newer ones, and I've even tried to remove everything first, before building the sources again, but the output remains the same. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
April 21, 2012 [Issue 7632] byValue() for associative arrays doesn't return the correct values | ||||
---|---|---|---|---|
| ||||
Posted in reply to Erik Johansson Andersson | http://d.puremagic.com/issues/show_bug.cgi?id=7632 SomeDude <lovelydear@mailmetrash.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lovelydear@mailmetrash.com --- Comment #5 from SomeDude <lovelydear@mailmetrash.com> 2012-04-21 06:13:30 PDT --- Works on 2.059 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
April 21, 2012 [Issue 7632] byValue() for associative arrays doesn't return the correct values | ||||
---|---|---|---|---|
| ||||
Posted in reply to Erik Johansson Andersson | http://d.puremagic.com/issues/show_bug.cgi?id=7632 --- Comment #6 from Erik Johansson Andersson <exetoc@gmail.com> 2012-04-21 07:51:45 PDT --- (In reply to comment #5) > Works on 2.059 Still doesn't work for me for some reason. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
April 21, 2012 [Issue 7632] byValue() for associative arrays doesn't return the correct values | ||||
---|---|---|---|---|
| ||||
Posted in reply to Erik Johansson Andersson | http://d.puremagic.com/issues/show_bug.cgi?id=7632 --- Comment #7 from Erik Johansson Andersson <exetoc@gmail.com> 2012-04-21 08:17:23 PDT --- Are you by any chance using -m32, or something? Because this bug has been confirmed by a 64-bit FreeBSD user, using the 2.059 release, as well as the latest git revision. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
April 21, 2012 [Issue 7632] byValue() for associative arrays doesn't return the correct values | ||||
---|---|---|---|---|
| ||||
Posted in reply to Erik Johansson Andersson | http://d.puremagic.com/issues/show_bug.cgi?id=7632 --- Comment #8 from SomeDude <lovelydear@mailmetrash.com> 2012-04-21 12:10:36 PDT --- Oh, I should have precised I'm using the Win32 release. I normally do it, but I forgot. Apologies. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation