Thread overview | ||||||||
---|---|---|---|---|---|---|---|---|
|
January 26, 2013 [Issue 9394] New: ABI for static arrays is outdated | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=9394 Summary: ABI for static arrays is outdated Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: websites AssignedTo: nobody@puremagic.com ReportedBy: andrej.mitrovich@gmail.com --- Comment #0 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2013-01-25 16:14:49 PST --- Quote: --------- int[3] abc; --------- $(P Passing abc to functions results in these implicit conversions:) --------- void func(int[3] array); // actually <reference to><array[3] of><int> void func(int* p); // abc is converted to a pointer // to the first element void func(int[] array); // abc is converted to a dynamic array --------- w.r.t. comments: For the first func: This is only true in D1. For the second func: I didn't even know worked in D2. But I don't see the benefit of such a conversion (perhaps interfacing with C?). For he third func: I thought we always had to use a slice, but it seems to work without it. How come? -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
February 07, 2013 [Issue 9394] ABI for static arrays is outdated | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrej Mitrovic | http://d.puremagic.com/issues/show_bug.cgi?id=9394 --- Comment #1 from github-bugzilla@puremagic.com 2013-02-06 20:04:52 PST --- Commits pushed to master at https://github.com/D-Programming-Language/d-programming-language.org https://github.com/D-Programming-Language/d-programming-language.org/commit/50381d3356dfa5fea7cc186ddc1cf9c002d5180d Fixes Issue 9394 - Fix static array ABI. Static arrays are not implicitly converted to references in D2. https://github.com/D-Programming-Language/d-programming-language.org/commit/49e28977b1f36d5af591a77a078fa6922a5bbd1e Merge pull request #258 from AndrejMitrovic/Fix9394 Issue 9394 - Fix static array ABI. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
February 07, 2013 [Issue 9394] ABI for static arrays is outdated | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrej Mitrovic | http://d.puremagic.com/issues/show_bug.cgi?id=9394 Andrej Mitrovic <andrej.mitrovich@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
February 07, 2013 [Issue 9394] ABI for static arrays is outdated | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrej Mitrovic | http://d.puremagic.com/issues/show_bug.cgi?id=9394 Kenji Hara <k.hara.pg@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED | --- Comment #2 from Kenji Hara <k.hara.pg@gmail.com> 2013-02-06 20:44:07 PST --- Already merged: https://github.com/D-Programming-Language/d-programming-language.org/pull/258 More fundamental deletion: https://github.com/D-Programming-Language/d-programming-language.org/pull/262 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
February 07, 2013 [Issue 9394] ABI for static arrays is outdated | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrej Mitrovic | http://d.puremagic.com/issues/show_bug.cgi?id=9394 --- Comment #3 from github-bugzilla@puremagic.com 2013-02-07 04:55:28 PST --- Commits pushed to master at https://github.com/D-Programming-Language/d-programming-language.org https://github.com/D-Programming-Language/d-programming-language.org/commit/a6324ef708fa7922b87251eeeb98322d3da22382 fix Issue 9394 - ABI for static arrays is outdated Almost of "Reference Types" section is outdated in D2. https://github.com/D-Programming-Language/d-programming-language.org/commit/20152e47f2651308268eec487c697769a96c7e9a Merge pull request #262 from 9rnsr/fix9394 Issue 9394 - ABI for static arrays is outdated -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
February 07, 2013 [Issue 9394] ABI for static arrays is outdated | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrej Mitrovic | http://d.puremagic.com/issues/show_bug.cgi?id=9394 Alex Rønne Petersen <alex@lycus.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED CC| |alex@lycus.org Resolution| |FIXED -- 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