digitalmars.D.bugs - [Issue 8350] New: array operation not fullly implemented
- d-bugmail puremagic.com (26/26) Jul 05 2012 http://d.puremagic.com/issues/show_bug.cgi?id=8350
- d-bugmail puremagic.com (16/16) Jul 07 2012 http://d.puremagic.com/issues/show_bug.cgi?id=8350
http://d.puremagic.com/issues/show_bug.cgi?id=8350
Summary: array operation not fullly implemented
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody puremagic.com
ReportedBy: bioinfornatics gmail.com
16:05:15 PDT ---
size_t[] a = [0, 1, 2, 3];
a[] += 1; // ---> implemented
size_t[] b = a[] + 1; // ---> Not yet implemented
---------------------
import std.stdio;
void main(){
size_t[] a = [0, 1, 2, 3];
size_t[] b = a[] + 1;
writeln( a );
}
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jul 05 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8350
yebblies <yebblies gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |diagnostic
CC| |yebblies gmail.com
Summary|array operation not fully |Misleading error message
|implemented |with invalid array
| |operation
The error message here is wrong, it's not that the array operation isn't
implemented, it's that 'size_t[] b = a[] + 1;' is not a valid array operation,
it would require allocating storage for b.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jul 07 2012








d-bugmail puremagic.com